[INCLUDE]
authorEric Kohl <eric.kohl@reactos.org>
Mon, 19 Jun 2017 13:48:40 +0000 (13:48 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Mon, 19 Jun 2017 13:48:40 +0000 (13:48 +0000)
Replace the lmbrowsr.h form wine by a more complete psdk version.
Lmbrowsr.h was a part of Visual Studio 6 but Microsoft removed it from the PSDK later.

svn path=/trunk/; revision=75123

reactos/sdk/include/psdk/lmbrowsr.h [new file with mode: 0644]
reactos/sdk/include/reactos/wine/lmbrowsr.h [deleted file]

diff --git a/reactos/sdk/include/psdk/lmbrowsr.h b/reactos/sdk/include/psdk/lmbrowsr.h
new file mode 100644 (file)
index 0000000..0cfe841
--- /dev/null
@@ -0,0 +1,78 @@
+#ifndef _LMBROWSR_
+#define _LMBROWSR_
+#if __GNUC__ >=3
+#pragma GCC system_header
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+#define BROWSER_ROLE_PDC 1
+#define BROWSER_ROLE_BDC 2
+typedef struct _BROWSER_STATISTICS {
+       LARGE_INTEGER StatisticsStartTime;
+       LARGE_INTEGER NumberOfServerAnnouncements;
+       LARGE_INTEGER NumberOfDomainAnnouncements;
+       ULONG NumberOfElectionPackets;
+       ULONG NumberOfMailslotWrites;
+       ULONG NumberOfGetBrowserServerListRequests;
+       ULONG NumberOfServerEnumerations;
+       ULONG NumberOfDomainEnumerations;
+       ULONG NumberOfOtherEnumerations;
+       ULONG NumberOfMissedServerAnnouncements;
+       ULONG NumberOfMissedMailslotDatagrams;
+       ULONG NumberOfMissedGetBrowserServerListRequests;
+       ULONG NumberOfFailedServerAnnounceAllocations;
+       ULONG NumberOfFailedMailslotAllocations;
+       ULONG NumberOfFailedMailslotReceives;
+       ULONG NumberOfFailedMailslotWrites;
+       ULONG NumberOfFailedMailslotOpens;
+       ULONG NumberOfDuplicateMasterAnnouncements;
+       LARGE_INTEGER NumberOfIllegalDatagrams;
+} BROWSER_STATISTICS,*PBROWSER_STATISTICS,*LPBROWSER_STATISTICS;
+typedef struct _BROWSER_STATISTICS_100 {
+       LARGE_INTEGER StartTime;
+       LARGE_INTEGER NumberOfServerAnnouncements;
+       LARGE_INTEGER NumberOfDomainAnnouncements;
+       ULONG NumberOfElectionPackets;
+       ULONG NumberOfMailslotWrites;
+       ULONG NumberOfGetBrowserServerListRequests;
+       LARGE_INTEGER NumberOfIllegalDatagrams;
+} BROWSER_STATISTICS_100,*PBROWSER_STATISTICS_100;
+typedef struct _BROWSER_STATISTICS_101 {
+       LARGE_INTEGER StartTime;
+       LARGE_INTEGER NumberOfServerAnnouncements;
+       LARGE_INTEGER NumberOfDomainAnnouncements;
+       ULONG NumberOfElectionPackets;
+       ULONG NumberOfMailslotWrites;
+       ULONG NumberOfGetBrowserServerListRequests;
+       LARGE_INTEGER NumberOfIllegalDatagrams;
+       ULONG NumberOfMissedServerAnnouncements;
+       ULONG NumberOfMissedMailslotDatagrams;
+       ULONG NumberOfMissedGetBrowserServerListRequests;
+       ULONG NumberOfFailedServerAnnounceAllocations;
+       ULONG NumberOfFailedMailslotAllocations;
+       ULONG NumberOfFailedMailslotReceives;
+       ULONG NumberOfFailedMailslotWrites;
+       ULONG NumberOfFailedMailslotOpens;
+       ULONG NumberOfDuplicateMasterAnnouncements;
+} BROWSER_STATISTICS_101,*PBROWSER_STATISTICS_101;
+typedef struct _BROWSER_EMULATED_DOMAIN {
+       LPWSTR DomainName;
+       LPWSTR EmulatedServerName;
+       DWORD Role;
+} BROWSER_EMULATED_DOMAIN,*PBROWSER_EMULATED_DOMAIN;
+
+NET_API_STATUS WINAPI I_BrowserServerEnum(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,DWORD,LPCWSTR,PDWORD);
+NET_API_STATUS WINAPI I_BrowserServerEnumEx(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,DWORD,LPCWSTR,LPCWSTR);
+NET_API_STATUS WINAPI I_BrowserQueryEmulatedDomains(LPWSTR,PBROWSER_EMULATED_DOMAIN*,PDWORD);
+NET_API_STATUS WINAPI I_BrowserQueryOtherDomains(LPCWSTR,PBYTE*,PDWORD,PDWORD);
+NET_API_STATUS WINAPI I_BrowserResetNetlogonState(LPCWSTR);
+NET_API_STATUS WINAPI I_BrowserSetNetlogonState(LPWSTR,LPWSTR,LPWSTR,DWORD);
+NET_API_STATUS WINAPI I_BrowserQueryStatistics(LPCWSTR,LPBROWSER_STATISTICS*);
+NET_API_STATUS WINAPI I_BrowserResetStatistics(LPCWSTR);
+NET_API_STATUS WINAPI I_BrowserDebugTrace(PWCHAR,PCHAR);
+#ifdef __cplusplus
+}
+#endif
+#endif
diff --git a/reactos/sdk/include/reactos/wine/lmbrowsr.h b/reactos/sdk/include/reactos/wine/lmbrowsr.h
deleted file mode 100644 (file)
index 03a49a1..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2002 Andriy Palamarchuk
- *
- * Browser NET API calls
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#ifndef __WINE_LMBROWSR_H
-#define __WINE_LMBROWSR_H
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct _BROWSER_EMULATED_DOMAIN {
-    LPWSTR DomainName;
-    LPWSTR EmulatedServerName;
-    DWORD Role;
-} BROWSER_EMULATED_DOMAIN, *PBROWSER_EMULATED_DOMAIN;
-
-NET_API_STATUS WINAPI I_BrowserSetNetlogonState(
-    LPWSTR ServerName, LPWSTR DomainName, LPWSTR EmulatedServerName,
-    DWORD Role);
-
-NET_API_STATUS WINAPI I_BrowserQueryEmulatedDomains(
-    LPWSTR ServerName, PBROWSER_EMULATED_DOMAIN *EmulatedDomains,
-    LPDWORD EntriesRead);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif