3 * Copyright 2012, 2013 MinGW.org project
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice (including the next
13 * paragraph) shall be included in all copies or substantial portions of the
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
26 #pragma GCC system_header
33 #define BROWSER_ROLE_PDC 1
34 #define BROWSER_ROLE_BDC 2
35 typedef struct _BROWSER_STATISTICS {
36 LARGE_INTEGER StatisticsStartTime;
37 LARGE_INTEGER NumberOfServerAnnouncements;
38 LARGE_INTEGER NumberOfDomainAnnouncements;
39 ULONG NumberOfElectionPackets;
40 ULONG NumberOfMailslotWrites;
41 ULONG NumberOfGetBrowserServerListRequests;
42 ULONG NumberOfServerEnumerations;
43 ULONG NumberOfDomainEnumerations;
44 ULONG NumberOfOtherEnumerations;
45 ULONG NumberOfMissedServerAnnouncements;
46 ULONG NumberOfMissedMailslotDatagrams;
47 ULONG NumberOfMissedGetBrowserServerListRequests;
48 ULONG NumberOfFailedServerAnnounceAllocations;
49 ULONG NumberOfFailedMailslotAllocations;
50 ULONG NumberOfFailedMailslotReceives;
51 ULONG NumberOfFailedMailslotWrites;
52 ULONG NumberOfFailedMailslotOpens;
53 ULONG NumberOfDuplicateMasterAnnouncements;
54 LARGE_INTEGER NumberOfIllegalDatagrams;
55 } BROWSER_STATISTICS,*PBROWSER_STATISTICS,*LPBROWSER_STATISTICS;
56 typedef struct _BROWSER_STATISTICS_100 {
57 LARGE_INTEGER StartTime;
58 LARGE_INTEGER NumberOfServerAnnouncements;
59 LARGE_INTEGER NumberOfDomainAnnouncements;
60 ULONG NumberOfElectionPackets;
61 ULONG NumberOfMailslotWrites;
62 ULONG NumberOfGetBrowserServerListRequests;
63 LARGE_INTEGER NumberOfIllegalDatagrams;
64 } BROWSER_STATISTICS_100,*PBROWSER_STATISTICS_100;
65 typedef struct _BROWSER_STATISTICS_101 {
66 LARGE_INTEGER StartTime;
67 LARGE_INTEGER NumberOfServerAnnouncements;
68 LARGE_INTEGER NumberOfDomainAnnouncements;
69 ULONG NumberOfElectionPackets;
70 ULONG NumberOfMailslotWrites;
71 ULONG NumberOfGetBrowserServerListRequests;
72 LARGE_INTEGER NumberOfIllegalDatagrams;
73 ULONG NumberOfMissedServerAnnouncements;
74 ULONG NumberOfMissedMailslotDatagrams;
75 ULONG NumberOfMissedGetBrowserServerListRequests;
76 ULONG NumberOfFailedServerAnnounceAllocations;
77 ULONG NumberOfFailedMailslotAllocations;
78 ULONG NumberOfFailedMailslotReceives;
79 ULONG NumberOfFailedMailslotWrites;
80 ULONG NumberOfFailedMailslotOpens;
81 ULONG NumberOfDuplicateMasterAnnouncements;
82 } BROWSER_STATISTICS_101,*PBROWSER_STATISTICS_101;
84 NET_API_STATUS WINAPI I_BrowserServerEnum(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,DWORD,LPCWSTR,PDWORD);
85 NET_API_STATUS WINAPI I_BrowserServerEnumEx(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,DWORD,LPCWSTR,LPCWSTR);
86 NET_API_STATUS I_BrowserQueryEmulatedDomains(LPWSTR,PBYTE*,PDWORD);
87 NET_API_STATUS I_BrowserQueryOtherDomains(LPCWSTR,PBYTE*,PDWORD,PDWORD);
88 NET_API_STATUS I_BrowserResetNetlogonState(LPCWSTR);
89 NET_API_STATUS I_BrowserSetNetlogonState(LPWSTR,LPWSTR,LPWSTR,DWORD);
90 NET_API_STATUS I_BrowserQueryStatistics(LPCWSTR,LPBROWSER_STATISTICS*);
91 NET_API_STATUS I_BrowserResetStatistics(LPCWSTR);
92 WORD I_BrowserServerEnumForXactsrv(LPCWSTR,LPCWSTR,ULONG,USHORT,PVOID,WORD,DWORD,PDWORD,PDWORD,DWORD,LPCWSTR,LPCWSTR,PWORD);
93 NET_API_STATUS I_BrowserDebugTrace(PWCHAR,PCHAR);