TrustedDomain As String
); As Variant_Boolean
[in] String TrustedDomain
Name of the domain with which the trust relationship has to be verified.
Checks if a trust relationship already exists between the given domain and the current domain.
Dim Trust As IDomainTrustManagement
Dim bTrustExists as Boolean
'Get the interface.
Set Trust = GetObject ("NTDS://DomainName")
'Call the VerifyTrust method
bTrustExists = Trust.VerifyTrust ("TrustedDomainName")
'Print the result