DS_DOMAIN_TRUSTS structure
The DS_DOMAIN_TRUSTS structure is used with the DsEnumerateDomainTrusts function to contain trust data for a domain.
Syntax
typedef struct _DS_DOMAIN_TRUSTS { LPTSTR NetbiosDomainName; LPTSTR DnsDomainName; ULONG Flags; ULONG ParentIndex; ULONG TrustType; ULONG TrustAttributes; PSID DomainSid; GUID DomainGuid; } DS_DOMAIN_TRUSTS, *PDS_DOMAIN_TRUSTS;
Members
- NetbiosDomainName
-
Pointer to a null-terminated string that contains the NetBIOS name of the domain.
- DnsDomainName
-
Pointer to a null-terminated string that contains the DNS name of the domain. This member may be NULL.
- Flags
-
Contains a set of flags that specify more data about the domain trust. This can be zero or a combination of one or more of the following values.
-
The domain represented by this structure is a member of the same forest as the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function.
-
The domain represented by this structure is directly trusted by the domain that the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function is a member of.
-
The domain represented by this structure is the root of a tree and a member of the same forest as the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function.
-
The domain represented by this structure is the primary domain of the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function.
-
The domain represented by this structure is running in the Windows 2000 native mode.
-
The domain represented by this structure directly trusts the domain that the server specified in the ServerName parameter of the DsEnumerateDomainTrusts function is a member of.
- ParentIndex
-
Contains the index in the Domains array returned by the DsEnumerateDomainTrusts function that corresponds to the parent domain of the domain represented by this structure. This member is only valid if the all of the following conditions are met:
- The DS_DOMAIN_IN_FOREST flag was specified in the Flags parameter of the DsEnumerateDomainTrusts function.
- The Flags member of this structure does not contain the DS_DOMAIN_TREE_ROOT flag.
- TrustType
-
Contains a value that indicates the type of trust represented by this structure. Possible values for this member are documented in the TrustType member of the TRUSTED_DOMAIN_INFORMATION_EX structure.
- TrustAttributes
-
Contains a value that indicates the attributes of the trust represented by this structure. Possible values for this member are documented in the TrustAttribute member of the TRUSTED_DOMAIN_INFORMATION_EX structure.
- DomainSid
-
Contains the security identifier of the domain represented by this structure.
- DomainGuid
-
Contains the GUID of the domain represented by this structure.
Requirements
|
Minimum supported client |
Windows Vista |
|---|---|
|
Minimum supported server |
Windows Server 2008 |
|
Header |
|
|
Unicode and ANSI names |
DS_DOMAIN_TRUSTSW (Unicode) and DS_DOMAIN_TRUSTSA (ANSI) |
See also