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.

121 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. brdomain.h
  5. Abstract:
  6. Header file for code to manage primary and emulated networks.
  7. Author:
  8. Cliff Van Dyke (CliffV) 13-Jan-1995
  9. Revision History:
  10. --*/
  11. //
  12. // Description of a single domain.
  13. //
  14. typedef struct _DOMAIN_INFO {
  15. //
  16. // Link to next domain in 'ServicedDomains'
  17. // (Serialized by NetworkCritSect)
  18. //
  19. LIST_ENTRY Next;
  20. //
  21. // Name of the domain being handled
  22. //
  23. UNICODE_STRING DomUnicodeDomainNameString;
  24. WCHAR DomUnicodeDomainName[DNLEN+1];
  25. CHAR DomOemDomainName[DNLEN+1];
  26. DWORD DomOemDomainNameLength;
  27. //
  28. // Computer name of this computer in this domain.
  29. //
  30. WCHAR DomUnicodeComputerName[CNLEN+1];
  31. DWORD DomUnicodeComputerNameLength;
  32. CHAR DomOemComputerName[CNLEN+1];
  33. DWORD DomOemComputerNameLength;
  34. //
  35. // Number of outstanding pointers to the domain structure.
  36. // (Serialized by NetworkCritSect)
  37. //
  38. DWORD ReferenceCount;
  39. //
  40. // DomainScavenger Timer
  41. //
  42. BROWSER_TIMER DomainRenameTimer;
  43. //
  44. // Misc flags.
  45. //
  46. BOOLEAN IsEmulatedDomain; // True if this is an emulated domain
  47. BOOLEAN PnpDone; // True if PNP was processed on this domain
  48. } DOMAIN_INFO, *PDOMAIN_INFO;
  49. //
  50. // List of all domains. The primary domain is at the front of the list.
  51. //
  52. extern LIST_ENTRY ServicedDomains;
  53. //
  54. // brdomain.c procedure forwards.
  55. //
  56. NET_API_STATUS
  57. BrInitializeDomains(
  58. VOID
  59. );
  60. NET_API_STATUS
  61. BrCreateDomainInWorker(
  62. LPWSTR DomainName,
  63. LPWSTR ComputerName,
  64. BOOLEAN IsEmulatedDomain
  65. );
  66. VOID
  67. BrRenameDomain(
  68. IN PVOID Context
  69. );
  70. PDOMAIN_INFO
  71. BrFindDomain(
  72. LPWSTR DomainName,
  73. BOOLEAN DefaultToPrimary
  74. );
  75. VOID
  76. BrDereferenceDomain(
  77. IN PDOMAIN_INFO DomainInfo
  78. );
  79. VOID
  80. BrDeleteDomain(
  81. IN PDOMAIN_INFO DomainInfo
  82. );
  83. VOID
  84. BrUninitializeDomains(
  85. VOID
  86. );