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.

79 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. bowmastr.h
  5. Abstract:
  6. This module implements all of the master browser related routines for the
  7. NT browser
  8. Author:
  9. Larry Osterman (LarryO) 21-Jun-1990
  10. Revision History:
  11. 21-Jun-1990 LarryO
  12. Created
  13. --*/
  14. #ifndef _BOWMASTR_
  15. #define _BOWMASTR_
  16. typedef struct _QUEUED_GET_BROWSER_REQUEST {
  17. LIST_ENTRY Entry;
  18. ULONG Token;
  19. USHORT RequestedCount;
  20. USHORT ClientNameLength;
  21. LARGE_INTEGER TimeReceived;
  22. #if DBG
  23. LARGE_INTEGER TimeQueued;
  24. LARGE_INTEGER TimeQueuedToBrowserThread;
  25. #endif
  26. WCHAR ClientName[1];
  27. } QUEUED_GET_BROWSER_REQUEST, *PQUEUED_GET_BROWSER_REQUEST;
  28. NTSTATUS
  29. BowserBecomeMaster(
  30. IN PTRANSPORT Transport
  31. );
  32. NTSTATUS
  33. BowserMasterFindMaster(
  34. IN PTRANSPORT Transport,
  35. IN PREQUEST_ELECTION_1 ElectionRequest,
  36. IN ULONG BytesAvailable
  37. );
  38. VOID
  39. BowserNewMaster(
  40. IN PTRANSPORT Transport,
  41. IN PUCHAR MasterName
  42. );
  43. VOID
  44. BowserCompleteFindMasterRequests(
  45. IN PTRANSPORT Transport,
  46. IN PUNICODE_STRING MasterName,
  47. IN NTSTATUS Status
  48. );
  49. DATAGRAM_HANDLER(
  50. BowserMasterAnnouncement
  51. );
  52. VOID
  53. BowserTimeoutFindMasterRequests(
  54. VOID
  55. );
  56. #endif // _BOWMASTR_