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.

91 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. domain.h
  5. Abstract:
  6. Header file for code to manage primary and emulated networks.
  7. Author:
  8. Cliff Van Dyke (CliffV) 23-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 'BowserServicedDomains'
  17. // (Serialized by BowserTransportDatabaseResource)
  18. //
  19. LIST_ENTRY Next;
  20. //
  21. // Name of the domain being handled
  22. //
  23. CHAR DomOemDomainName[DNLEN+1];
  24. DWORD DomOemDomainNameLength;
  25. CHAR DomNetbiosDomainName[NETBIOS_NAME_LEN+1];
  26. WCHAR DomUnicodeDomainNameBuffer[DNLEN+1];
  27. UNICODE_STRING DomUnicodeDomainName;
  28. //
  29. // Computer name associated with this domain.
  30. //
  31. WCHAR DomUnicodeComputerNameBuffer[CNLEN+1];
  32. UNICODE_STRING DomUnicodeComputerName;
  33. CHAR DomOemComputerNameBuffer[CNLEN+1];
  34. OEM_STRING DomOemComputerName;
  35. //
  36. // Number of outstanding pointer to the domain structure.
  37. // (Serialized by BowserTransportDatabaseResource)
  38. //
  39. DWORD ReferenceCount;
  40. } DOMAIN_INFO, *PDOMAIN_INFO;
  41. //
  42. // List of all domains. The primary domain is at the front of the list.
  43. //
  44. extern LIST_ENTRY BowserServicedDomains;
  45. //
  46. // domain.c procedure forwards.
  47. //
  48. VOID
  49. BowserInitializeDomains(
  50. VOID
  51. );
  52. PDOMAIN_INFO
  53. BowserCreateDomain(
  54. PUNICODE_STRING DomainName,
  55. PUNICODE_STRING ComputerName
  56. );
  57. PDOMAIN_INFO
  58. BowserFindDomain(
  59. PUNICODE_STRING DomainName
  60. );
  61. VOID
  62. BowserDereferenceDomain(
  63. IN PDOMAIN_INFO DomainInfo
  64. );