Leaked source code of windows server 2003
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.

158 lines
3.5 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. brdevice.h
  5. Abstract:
  6. Private header file to be included by Workstation service modules that
  7. need to call into the NT Redirector and the NT Datagram Receiver.
  8. Author:
  9. Rita Wong (ritaw) 15-Feb-1991
  10. Revision History:
  11. --*/
  12. #ifndef _BRDEVICE_INCLUDED_
  13. #define _BRDEVICE_INCLUDED_
  14. #include <ntddbrow.h> // Datagram receiver include file
  15. //-------------------------------------------------------------------//
  16. // //
  17. // Type definitions //
  18. // //
  19. //-------------------------------------------------------------------//
  20. typedef enum _DDTYPE {
  21. DatagramReceiver
  22. } DDTYPE, *PDDTYPE;
  23. typedef struct _BROWSERASYNCCONTEXT {
  24. WORKER_ITEM WorkItem;
  25. PNETWORK Network;
  26. IO_STATUS_BLOCK IoStatusBlock;
  27. PLMDR_REQUEST_PACKET RequestPacket;
  28. //
  29. // Timestamp when request was completed.
  30. //
  31. LARGE_INTEGER TimeCompleted;
  32. } BROWSERASYNCCONTEXT, *PBROWSERASYNCCONTEXT;
  33. //-------------------------------------------------------------------//
  34. // //
  35. // Function prototypes of support routines found in wsdevice.c //
  36. // //
  37. //-------------------------------------------------------------------//
  38. NET_API_STATUS
  39. BrOpenDgReceiver (
  40. VOID
  41. );
  42. NET_API_STATUS
  43. BrAnnounceDomain(
  44. IN PNETWORK Network,
  45. IN ULONG Periodicty
  46. );
  47. NET_API_STATUS
  48. BrGetTransportList(
  49. OUT PLMDR_TRANSPORT_LIST *TransportList
  50. );
  51. NET_API_STATUS
  52. BrIssueAsyncBrowserIoControl(
  53. IN PNETWORK Network,
  54. IN ULONG ControlCode,
  55. IN PBROWSER_WORKER_ROUTINE CompletionRoutine,
  56. IN PVOID OptionalParamter
  57. );
  58. NET_API_STATUS
  59. BrGetLocalBrowseList(
  60. IN PNETWORK Network,
  61. IN LPWSTR DomainName,
  62. IN ULONG Level,
  63. IN ULONG ServerType,
  64. OUT PVOID *ServerList,
  65. OUT PULONG EntriesRead,
  66. OUT PULONG TotalEntries
  67. );
  68. NET_API_STATUS
  69. BrUpdateBrowserStatus (
  70. IN PNETWORK Network,
  71. IN DWORD ServiceStatus
  72. );
  73. VOID
  74. BrShutdownDgReceiver(
  75. VOID
  76. );
  77. NET_API_STATUS
  78. BrRemoveOtherDomain(
  79. IN PNETWORK Network,
  80. IN LPTSTR ServerName
  81. );
  82. NET_API_STATUS
  83. BrQueryOtherDomains(
  84. OUT LPSERVER_INFO_100 *ReturnedBuffer,
  85. OUT LPDWORD TotalEntries
  86. );
  87. NET_API_STATUS
  88. BrAddOtherDomain(
  89. IN PNETWORK Network,
  90. IN LPTSTR ServerName
  91. );
  92. NET_API_STATUS
  93. BrBindToTransport(
  94. IN LPWSTR TransportName,
  95. IN LPWSTR EmulatedDomainName,
  96. IN LPWSTR EmulatedComputerName
  97. );
  98. NET_API_STATUS
  99. BrUnbindFromTransport(
  100. IN LPWSTR TransportName,
  101. IN LPWSTR EmulatedDomainName
  102. );
  103. NET_API_STATUS
  104. BrEnablePnp(
  105. BOOL Enable
  106. );
  107. NET_API_STATUS
  108. PostWaitForPnp (
  109. VOID
  110. );
  111. //-------------------------------------------------------------------//
  112. // //
  113. // Global variables //
  114. // //
  115. //-------------------------------------------------------------------//
  116. //
  117. // Handle to the Datagram Receiver DD
  118. //
  119. extern HANDLE BrDgReceiverDeviceHandle;
  120. #endif // ifndef _BRDEVICE_INCLUDED_