Platform SDK: Active Directory, ADSI, and Directory Services

DOMAINDESC

The DOMAINDESC structure is used to hold information of a domain, including the domain name, the distinguished name, its parent, children, and/or siblings.

typedef struct DOMAINDESC 
{
  LPWSTR  pszName;
  LPWSTR  pszPath;
  LPWSTR  pszNCName;
  LPWSTR  pszTrustParent;
  LPWSTR  pszObjectClass;
  ULONG   ulFlags;
  BOOL    fDownLevel;
  struct  _DOMAINDESC *pdChildList;
  struct  _DOMAINDESC *pdNextSibling;
} DOMAIN_DESC, DOMAINDESC, *PDOMAIN_DESC, *LPDOMAINDESC;

Members

pszName
Domain name. If there is no DNS, use NetBIOS.
pszPath
Set to blank.
pszNCName
Fully qualified distinguished name; for example, DC=MyDomain, DC=Microsoft, DC=COM.
pszTrustParent
Parent Domain Name. If there is no DNS, use NetBIOS.
pszObjectClass
Object class of the referenced domain object.
ulFlags
Flags from the DS_TRUSTED_DOMAIN.Flags.
fDownLevel
Is the domain a downlevel domain? Yes, if it is one (1).
*pdChildList
Children of this node.
*pdNextSibling
Siblings of this node.

Remarks

The DOMAINTREE structure uses an array of DOMAINDESC structures to maintain the information about a domain tree that can be displayed using the IDsBrowseDomainTree interface.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Dsclient.h.

See Also

Active Directory Display Structures, DOMAINTREE, IDsBrowseDomainTree