MDAC 2.5 SDK - Technical Articles
Determines whether two trustees are identical.
The consumer passes in the addresses of two initialized TRUSTEE structures to this method. The provider compares the trustee in any manner it chooses and returns the result of that comparison in the HRESULT return code.
HRESULT CompareTrustees (
TRUSTEE * pTrustee1,
TRUSTEE * pTrustee2
);
Parameters
pTrustee1
[in]
Address of the first TRUSTEE structure to compare.
pTrustee2
[in]
Address of the second TRUSTEE structure to compare.
Return Code
S_OK
The two trustees are equal.
S_FALSE
The two trustees are not equal.
SEC_E_PERMISSIONDENIED
Requester does not have permissions for the operation.
SEC_E_BADTRUSTEEID
pTrustee1 or pTrustee2 did not point to a valid TRUSTEE structure.
SEC_E_NOTRUSTEEID
pTrustee1 or pTrustee2 was not a trustee for the current data source object.
E_INVALIDARG
pTrustee1 or pTrustee2 was a null pointer.
E_FAIL
A provider-specific error occurred.
See Also
ITrusteeAdmin, TRUSTEE