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.

166 lines
3.9 KiB

  1. /*++ BUILD Version: 0007 // Increment this if a change has global effects
  2. Copyright (c) 1990-1993 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. Author:
  12. Dan Lafferty (danl) 24-Jan-1991
  13. Environment:
  14. User Mode - Win32
  15. Notes:
  16. You must include NETCONS.H before this file, since this file depends
  17. on values defined in NETCONS.H.
  18. Revision History:
  19. 25-Jan-1991 Danl
  20. Ported from LM2.0
  21. 12-Feb-1991 danl
  22. Changed info levels to match current spec - no more info level 3.
  23. 14-Apr-1991 w-shanku
  24. Changed parmnum constants to be more consistent with OS/2 parmnums.
  25. 19-Apr-1991 JohnRo
  26. Added OPTIONAL keywords to APIs. Added SV_MAX_SRV_HEUR_LEN from LM 2.x
  27. 09-May-1991 JohnRo
  28. Implement UNICODE.
  29. 22-May-1991 JohnRo
  30. Added three new SV_TYPE equates from LM 2.x source.
  31. 23-May-1991 JohnRo
  32. Added sv403_autopath.
  33. 26-May-1991 JohnRo
  34. Corrected value of SV_ERRORALERT_PARMNUM.
  35. 18-Jun-1991 JohnRo
  36. Changed sv102_disc to be signed, and changed SV_NODISC to be 32-bits.
  37. Added sv102_licenses.
  38. --*/
  39. #ifndef _LMBROWSR_
  40. #define _LMBROWSR_
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44. typedef struct _BROWSER_STATISTICS {
  45. LARGE_INTEGER StatisticsStartTime;
  46. LARGE_INTEGER NumberOfServerAnnouncements;
  47. LARGE_INTEGER NumberOfDomainAnnouncements;
  48. ULONG NumberOfElectionPackets;
  49. ULONG NumberOfMailslotWrites;
  50. ULONG NumberOfGetBrowserServerListRequests;
  51. ULONG NumberOfServerEnumerations;
  52. ULONG NumberOfDomainEnumerations;
  53. ULONG NumberOfOtherEnumerations;
  54. ULONG NumberOfMissedServerAnnouncements;
  55. ULONG NumberOfMissedMailslotDatagrams;
  56. ULONG NumberOfMissedGetBrowserServerListRequests;
  57. ULONG NumberOfFailedServerAnnounceAllocations;
  58. ULONG NumberOfFailedMailslotAllocations;
  59. ULONG NumberOfFailedMailslotReceives;
  60. ULONG NumberOfFailedMailslotWrites;
  61. ULONG NumberOfFailedMailslotOpens;
  62. ULONG NumberOfDuplicateMasterAnnouncements;
  63. LARGE_INTEGER NumberOfIllegalDatagrams;
  64. } BROWSER_STATISTICS, *PBROWSER_STATISTICS, *LPBROWSER_STATISTICS;
  65. //
  66. // Function Prototypes - BROWSER
  67. //
  68. NET_API_STATUS NET_API_FUNCTION
  69. I_BrowserServerEnum (
  70. IN LPTSTR servername OPTIONAL,
  71. IN LPTSTR transport OPTIONAL,
  72. IN LPTSTR clientname OPTIONAL,
  73. IN DWORD level,
  74. OUT LPBYTE *bufptr,
  75. IN DWORD prefmaxlen,
  76. OUT LPDWORD entriesread,
  77. OUT LPDWORD totalentries,
  78. IN DWORD servertype,
  79. IN LPTSTR domain OPTIONAL,
  80. IN OUT LPDWORD resume_handle OPTIONAL
  81. );
  82. NET_API_STATUS
  83. I_BrowserQueryOtherDomains (
  84. IN LPTSTR servername OPTIONAL,
  85. OUT LPBYTE *bufptr,
  86. OUT LPDWORD entriesread,
  87. OUT LPDWORD totalentries
  88. );
  89. NET_API_STATUS
  90. I_BrowserResetNetlogonState (
  91. IN LPTSTR servername OPTIONAL
  92. );
  93. NET_API_STATUS
  94. I_BrowserQueryStatistics (
  95. IN LPTSTR servername OPTIONAL,
  96. OUT LPBROWSER_STATISTICS *statistics
  97. );
  98. NET_API_STATUS
  99. I_BrowserResetStatistics (
  100. IN LPTSTR servername OPTIONAL
  101. );
  102. WORD
  103. I_BrowserServerEnumForXactsrv(
  104. IN LPTSTR TransportName OPTIONAL,
  105. IN LPTSTR ClientName OPTIONAL,
  106. IN ULONG NtLevel,
  107. IN USHORT ClientLevel,
  108. OUT PVOID Buffer,
  109. IN WORD BufferLength,
  110. IN DWORD PreferedMaximumLength,
  111. OUT LPDWORD EntriesRead,
  112. OUT LPDWORD TotalEntries,
  113. IN DWORD ServerType,
  114. IN LPTSTR Domain,
  115. OUT PWORD Converter
  116. );
  117. #ifdef __cplusplus
  118. }
  119. #endif
  120. #if DBG
  121. NET_API_STATUS
  122. I_BrowserDebugTrace(
  123. PWCHAR Server,
  124. PCHAR Buffer
  125. );
  126. #endif
  127. #endif // _LMBROWSR_