Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

181 lines
4.6 KiB

  1. /*++ BUILD Version: 0007 // Increment this if a change has global effects
  2. Copyright (c) 1990-1995 Microsoft Corporation
  3. Module Name:
  4. lmbrowsr.h
  5. Abstract:
  6. This file contains information about browser stubbed versions of the
  7. NetServer APIs.
  8. Function Prototypes
  9. Data Structures
  10. Definition of special values
  11. Environment:
  12. User Mode - Win32
  13. Notes:
  14. You must include NETCONS.H before this file, since this file depends
  15. on values defined in NETCONS.H.
  16. --*/
  17. #ifndef _LMBROWSR_
  18. #define _LMBROWSR_
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. typedef struct _BROWSER_STATISTICS {
  23. LARGE_INTEGER StatisticsStartTime;
  24. LARGE_INTEGER NumberOfServerAnnouncements;
  25. LARGE_INTEGER NumberOfDomainAnnouncements;
  26. ULONG NumberOfElectionPackets;
  27. ULONG NumberOfMailslotWrites;
  28. ULONG NumberOfGetBrowserServerListRequests;
  29. ULONG NumberOfServerEnumerations;
  30. ULONG NumberOfDomainEnumerations;
  31. ULONG NumberOfOtherEnumerations;
  32. ULONG NumberOfMissedServerAnnouncements;
  33. ULONG NumberOfMissedMailslotDatagrams;
  34. ULONG NumberOfMissedGetBrowserServerListRequests;
  35. ULONG NumberOfFailedServerAnnounceAllocations;
  36. ULONG NumberOfFailedMailslotAllocations;
  37. ULONG NumberOfFailedMailslotReceives;
  38. ULONG NumberOfFailedMailslotWrites;
  39. ULONG NumberOfFailedMailslotOpens;
  40. ULONG NumberOfDuplicateMasterAnnouncements;
  41. LARGE_INTEGER NumberOfIllegalDatagrams;
  42. } BROWSER_STATISTICS, *PBROWSER_STATISTICS, *LPBROWSER_STATISTICS;
  43. typedef struct _BROWSER_STATISTICS_100 {
  44. LARGE_INTEGER StartTime;
  45. LARGE_INTEGER NumberOfServerAnnouncements;
  46. LARGE_INTEGER NumberOfDomainAnnouncements;
  47. ULONG NumberOfElectionPackets;
  48. ULONG NumberOfMailslotWrites;
  49. ULONG NumberOfGetBrowserServerListRequests;
  50. LARGE_INTEGER NumberOfIllegalDatagrams;
  51. } BROWSER_STATISTICS_100, *PBROWSER_STATISTICS_100;
  52. typedef struct _BROWSER_STATISTICS_101 {
  53. LARGE_INTEGER StartTime;
  54. LARGE_INTEGER NumberOfServerAnnouncements;
  55. LARGE_INTEGER NumberOfDomainAnnouncements;
  56. ULONG NumberOfElectionPackets;
  57. ULONG NumberOfMailslotWrites;
  58. ULONG NumberOfGetBrowserServerListRequests;
  59. LARGE_INTEGER NumberOfIllegalDatagrams;
  60. ULONG NumberOfMissedServerAnnouncements;
  61. ULONG NumberOfMissedMailslotDatagrams;
  62. ULONG NumberOfMissedGetBrowserServerListRequests;
  63. ULONG NumberOfFailedServerAnnounceAllocations;
  64. ULONG NumberOfFailedMailslotAllocations;
  65. ULONG NumberOfFailedMailslotReceives;
  66. ULONG NumberOfFailedMailslotWrites;
  67. ULONG NumberOfFailedMailslotOpens;
  68. ULONG NumberOfDuplicateMasterAnnouncements;
  69. } BROWSER_STATISTICS_101, *PBROWSER_STATISTICS_101;
  70. //
  71. // Function Prototypes - BROWSER
  72. //
  73. NET_API_STATUS NET_API_FUNCTION
  74. I_BrowserServerEnum (
  75. IN LPTSTR servername OPTIONAL,
  76. IN LPTSTR transport OPTIONAL,
  77. IN LPTSTR clientname OPTIONAL,
  78. IN DWORD level,
  79. OUT LPBYTE *bufptr,
  80. IN DWORD prefmaxlen,
  81. OUT LPDWORD entriesread,
  82. OUT LPDWORD totalentries,
  83. IN DWORD servertype,
  84. IN LPTSTR domain OPTIONAL,
  85. IN OUT LPDWORD resume_handle OPTIONAL
  86. );
  87. NET_API_STATUS
  88. I_BrowserQueryOtherDomains (
  89. IN LPTSTR servername OPTIONAL,
  90. OUT LPBYTE *bufptr,
  91. OUT LPDWORD entriesread,
  92. OUT LPDWORD totalentries
  93. );
  94. NET_API_STATUS
  95. I_BrowserResetNetlogonState (
  96. IN LPTSTR servername OPTIONAL
  97. );
  98. NET_API_STATUS
  99. I_BrowserSetNetlogonState(
  100. IN LPWSTR ServerName OPTIONAL,
  101. IN LPWSTR DomainName,
  102. IN LPWSTR EmulatedServerName OPTIONAL,
  103. IN DWORD Role
  104. );
  105. #define BROWSER_ROLE_PDC 0x1
  106. #define BROWSER_ROLE_BDC 0x2
  107. NET_API_STATUS
  108. I_BrowserQueryStatistics (
  109. IN LPTSTR servername OPTIONAL,
  110. OUT LPBROWSER_STATISTICS *statistics
  111. );
  112. NET_API_STATUS
  113. I_BrowserResetStatistics (
  114. IN LPTSTR servername OPTIONAL
  115. );
  116. WORD
  117. I_BrowserServerEnumForXactsrv(
  118. IN LPTSTR TransportName OPTIONAL,
  119. IN LPTSTR ClientName OPTIONAL,
  120. IN ULONG NtLevel,
  121. IN USHORT ClientLevel,
  122. OUT PVOID Buffer,
  123. IN WORD BufferLength,
  124. IN DWORD PreferedMaximumLength,
  125. OUT LPDWORD EntriesRead,
  126. OUT LPDWORD TotalEntries,
  127. IN DWORD ServerType,
  128. IN LPTSTR Domain,
  129. OUT PWORD Converter
  130. );
  131. #ifdef __cplusplus
  132. }
  133. #endif
  134. #if DBG
  135. NET_API_STATUS
  136. I_BrowserDebugTrace(
  137. PWCHAR Server,
  138. PCHAR Buffer
  139. );
  140. #endif
  141. #endif // _LMBROWSR_