xref: /reactos/sdk/include/psdk/lmbrowsr.h (revision c2c66aff)
1 #ifndef _LMBROWSR_H
2 #define _LMBROWSR_H
3 #if __GNUC__ >=3
4 #pragma GCC system_header
5 #endif
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 #define BROWSER_ROLE_PDC 1
11 #define BROWSER_ROLE_BDC 2
12 typedef struct _BROWSER_STATISTICS {
13 	LARGE_INTEGER StatisticsStartTime;
14 	LARGE_INTEGER NumberOfServerAnnouncements;
15 	LARGE_INTEGER NumberOfDomainAnnouncements;
16 	ULONG NumberOfElectionPackets;
17 	ULONG NumberOfMailslotWrites;
18 	ULONG NumberOfGetBrowserServerListRequests;
19 	ULONG NumberOfServerEnumerations;
20 	ULONG NumberOfDomainEnumerations;
21 	ULONG NumberOfOtherEnumerations;
22 	ULONG NumberOfMissedServerAnnouncements;
23 	ULONG NumberOfMissedMailslotDatagrams;
24 	ULONG NumberOfMissedGetBrowserServerListRequests;
25 	ULONG NumberOfFailedServerAnnounceAllocations;
26 	ULONG NumberOfFailedMailslotAllocations;
27 	ULONG NumberOfFailedMailslotReceives;
28 	ULONG NumberOfFailedMailslotWrites;
29 	ULONG NumberOfFailedMailslotOpens;
30 	ULONG NumberOfDuplicateMasterAnnouncements;
31 	LARGE_INTEGER NumberOfIllegalDatagrams;
32 } BROWSER_STATISTICS,*PBROWSER_STATISTICS,*LPBROWSER_STATISTICS;
33 typedef struct _BROWSER_STATISTICS_100 {
34 	LARGE_INTEGER StartTime;
35 	LARGE_INTEGER NumberOfServerAnnouncements;
36 	LARGE_INTEGER NumberOfDomainAnnouncements;
37 	ULONG NumberOfElectionPackets;
38 	ULONG NumberOfMailslotWrites;
39 	ULONG NumberOfGetBrowserServerListRequests;
40 	LARGE_INTEGER NumberOfIllegalDatagrams;
41 } BROWSER_STATISTICS_100,*PBROWSER_STATISTICS_100;
42 typedef struct _BROWSER_STATISTICS_101 {
43 	LARGE_INTEGER StartTime;
44 	LARGE_INTEGER NumberOfServerAnnouncements;
45 	LARGE_INTEGER NumberOfDomainAnnouncements;
46 	ULONG NumberOfElectionPackets;
47 	ULONG NumberOfMailslotWrites;
48 	ULONG NumberOfGetBrowserServerListRequests;
49 	LARGE_INTEGER NumberOfIllegalDatagrams;
50 	ULONG NumberOfMissedServerAnnouncements;
51 	ULONG NumberOfMissedMailslotDatagrams;
52 	ULONG NumberOfMissedGetBrowserServerListRequests;
53 	ULONG NumberOfFailedServerAnnounceAllocations;
54 	ULONG NumberOfFailedMailslotAllocations;
55 	ULONG NumberOfFailedMailslotReceives;
56 	ULONG NumberOfFailedMailslotWrites;
57 	ULONG NumberOfFailedMailslotOpens;
58 	ULONG NumberOfDuplicateMasterAnnouncements;
59 } BROWSER_STATISTICS_101,*PBROWSER_STATISTICS_101;
60 typedef struct _BROWSER_EMULATED_DOMAIN {
61 	LPWSTR DomainName;
62 	LPWSTR EmulatedServerName;
63 	DWORD Role;
64 } BROWSER_EMULATED_DOMAIN,*PBROWSER_EMULATED_DOMAIN;
65 
66 NET_API_STATUS WINAPI I_BrowserServerEnum(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,DWORD,LPCWSTR,PDWORD);
67 NET_API_STATUS WINAPI I_BrowserServerEnumEx(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,DWORD,LPCWSTR,LPCWSTR);
68 NET_API_STATUS WINAPI I_BrowserQueryEmulatedDomains(LPWSTR,PBROWSER_EMULATED_DOMAIN*,PDWORD);
69 NET_API_STATUS WINAPI I_BrowserQueryOtherDomains(LPCWSTR,PBYTE*,PDWORD,PDWORD);
70 NET_API_STATUS WINAPI I_BrowserResetNetlogonState(LPCWSTR);
71 NET_API_STATUS WINAPI I_BrowserSetNetlogonState(LPWSTR,LPWSTR,LPWSTR,DWORD);
72 NET_API_STATUS WINAPI I_BrowserQueryStatistics(LPCWSTR,LPBROWSER_STATISTICS*);
73 NET_API_STATUS WINAPI I_BrowserResetStatistics(LPCWSTR);
74 NET_API_STATUS WINAPI I_BrowserDebugTrace(PWCHAR,PCHAR);
75 NET_API_STATUS WINAPI NetBrowserStatisticsGet(PWSTR,DWORD,PBYTE*);
76 #ifdef __cplusplus
77 }
78 #endif
79 #endif
80