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.
|
|
/*++
Copyright (c) 1995 Microsoft Corporation
Module Name:
brdomain.h
Abstract:
Header file for code to manage primary and emulated networks.
Author:
Cliff Van Dyke (CliffV) 13-Jan-1995
Revision History:
--*/
//
// Description of a single domain.
//
typedef struct _DOMAIN_INFO {
//
// Link to next domain in 'ServicedDomains'
// (Serialized by NetworkCritSect)
//
LIST_ENTRY Next;
//
// Name of the domain being handled
//
UNICODE_STRING DomUnicodeDomainNameString; WCHAR DomUnicodeDomainName[DNLEN+1];
CHAR DomOemDomainName[DNLEN+1]; DWORD DomOemDomainNameLength;
//
// Computer name of this computer in this domain.
//
WCHAR DomUnicodeComputerName[CNLEN+1]; DWORD DomUnicodeComputerNameLength;
CHAR DomOemComputerName[CNLEN+1]; DWORD DomOemComputerNameLength;
//
// Number of outstanding pointers to the domain structure.
// (Serialized by NetworkCritSect)
//
DWORD ReferenceCount;
//
// DomainScavenger Timer
//
BROWSER_TIMER DomainRenameTimer;
//
// Misc flags.
//
BOOLEAN IsEmulatedDomain; // True if this is an emulated domain
BOOLEAN PnpDone; // True if PNP was processed on this domain
} DOMAIN_INFO, *PDOMAIN_INFO;
//
// List of all domains. The primary domain is at the front of the list.
//
extern LIST_ENTRY ServicedDomains;
//
// brdomain.c procedure forwards.
//
NET_API_STATUS BrInitializeDomains( VOID );
NET_API_STATUS BrCreateDomainInWorker( LPWSTR DomainName, LPWSTR ComputerName, BOOLEAN IsEmulatedDomain );
VOID BrRenameDomain( IN PVOID Context );
PDOMAIN_INFO BrFindDomain( LPWSTR DomainName, BOOLEAN DefaultToPrimary );
VOID BrDereferenceDomain( IN PDOMAIN_INFO DomainInfo );
VOID BrDeleteDomain( IN PDOMAIN_INFO DomainInfo );
VOID BrUninitializeDomains( VOID );
|