Platform SDK: Active Directory, ADSI, and Directory Services

DS_DOMAIN_TRUSTS

The DS_DOMAIN_TRUSTS structure contains information of the trust structures returned by the Domains parameter of DsEnumerateDomainTrusts.

typedef struct _DS_DOMAIN_TRUSTS 
{
  LPSTR  NetbiosDomainName;
  LPSTR  DnsDomainName;
  ULONG  Flags;
  ULONG  ParentIndex;
  ULONG  TrustType;
  ULONG  TrustAttributes;
  PSID   DomainSid;
  GUID   DomainGuid;
} DS_DOMAIN_TRUSTS, *PDS_DOMAIN_TRUSTS;

Members

NetbiosDomainName
The NetBIOS name of the returned domain.
DnsDomainName
The DNS name of the returned domain.
Flags
These flags specify attributes of the trust. These are the DS_DOMAIN_*** values bitwise, coupled by using the OR operation. See the DsEnumerateDomainTrusts function.
ParentIndex
An integer index between 0 (inclusive) and the DomainCount (exclusive) that specifies an index in the returned array Domains that correspond to the parent domain of the returned domain. The value of this parameter is valid only if DS_DOMAIN_IN_FOREST was specified in the input Flags parameter of the DsEnumerateDomainTrusts function and the Flags parameter of this structure does not have the DS_DOMAIN_TREE_ROOT bit set.
TrustType
Specifies one of the following values to indicate the type of trust relationship. These values also correspond to the same parameter (TrustType) in the LSA (Local Security Authority) functions.
Value Meaning
TRUST_TYPE_DCE The trusted domain is a DCE realm.
TRUST_TYPE_DOWNLEVEL The domain controller of the trusted domain is a Windows NT® 4.0 or earlier system.
TRUST_TYPE_MIT The trusted domain is an MIT Kerberos realm.
TRUST_TYPE_UPLEVEL The domain controller of the trusted domain is a Windows® 2000 or later system.

TrustAttributes
The trust attributes of the trust. These values also correspond to the same parameter (TrustAttribute) in the LSA (Local Security Authority) functions.
Value Meaning
TRUST_ATTRIBUTE_NON_TRANSITIVE Disallow transitivity.
TRUST_ATTRIBUTE_TREE_PARENT Denotes the trust setting to the parent in the organization tree.
TRUST_ATTRIBUTE_TREE_ROOT Denotes the trust setting to another tree root in the forest.
TRUST_ATTRIBUTE_UPLEVEL_ONLY Trusted link valid only for uplevel client.

DomainSid
The Security ID of the domain.
DomainGuid
The GUID of the domain.

See Also

Directory Service Structures, DsEnumerateDomainTrusts