MDAC Technical Articles

ITrusteeGroupAdmin::IsMember

Determines whether a trustee is a member of a membership trustee.

This function is not applicable to trustees with the TRUSTEE_TYPE element set to TRUSTEE_IS_USER, because a user cannot have members.

HRESULT IsMember ( 
   TRUSTEE *   pMembershipTrustee,
   TRUSTEE *   pMemberTrustee,
   BOOL *      pfStatus
);

Parameters

pMembershipTrustee
[in]
Address of the TRUSTEE structure that identifies the membership trustee whose membership will be checked.
pMemberTrustee
[in]
Address of the TRUSTEE structure that identifies the trustee to find in the membership trustee.
pfStatus
[out]
Address of a BOOL variable that receives the result of the check.

Return Code

S_OK
The method succeeded, whether or not pMemberTrustee is a member of pMembershipTrustee.
SEC_E_PERMISSIONDENIED
Requester does not have permissions for the operation.
SEC_E_BADTRUSTEEID
pMembershipTrustee or pMemberTrustee did not point to a valid TRUSTEE structure.
SEC_E_NOTRUSTEEID
pMembershipTrustee or pMemberTrustee was not a trustee for the current data source object.
SEC_E_NOMEMBERSHIPSUPPORT
The trustee pointed to by pMembershipTrustee does not support memberships.
E_INVALIDARG
pMembershipTrustee, pMemberTrustee, or pfStatus was a null pointer.
E_FAIL
A provider-specific error occurred.

See Also

ITrusteeGroupAdmin, ITrusteeGroupAdmin::GetMembers, ITrusteeGroupAdmin::GetMemberships, TRUSTEE