DOMAIN_DESC structure (dsclient.h)

The DOMAINDESC structure contains data about an element in a domain tree obtained with the IDsBrowseDomainTree::GetDomains method. This structure is contained in the DOMAINTREE structure.

Syntax

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

Pointer to a Unicode string that contains the domain name.

pszPath

Pointer to a Unicode string that contains the path of the domain. Reserved.

pszNCName

Pointer to a Unicode string that contains the fully qualified name of the domain in the form "DC=myDom, DC=Fabrikam, DC=com". This member is blank if the DBDTF_RETURNFQDN flag is not set in the dwFlags parameter in IDsBrowseDomainTree::GetDomains.

pszTrustParent

Pointer to a Unicode string that contains the name of the parent domain. This member is NULL if the domain has no parent.

pszObjectClass

Pointer to a Unicode string that contains the object class name of the domain.

ulFlags

Contains a set of flags that specify the attributes of the trust. For more information, and a list of possible values, see the Flags parameter of DsEnumerateDomainTrusts.

fDownLevel

Contains a nonzero value if the domain is a down-level domain or zero otherwise.

pdChildList

Contains a pointer to a DOMAINDESC structure that represents the first child of the domain. Obtain subsequent children by accessing the pdNextSibling member of the child structure. This member is NULL if the domain has no children.

pdNextSibling

Contains a pointer to a DOMAINDESC structure that represents the next sibling of the domain. Obtain subsequent siblings by accessing the pdNextSibling member of the sibling structure. This member is NULL if the domain has no siblings.

Remarks

For more information about how to access and use the information in this structure, see Domain Browser.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header dsclient.h

See also

DOMAINTREE

Display Structures in Active Directory Domain Services

Domain Browser

DsEnumerateDomainTrusts