MDAC 2.5 SDK - Technical Articles
Adds a member trustee to a membership trustee.
HRESULT AddMember (
TRUSTEE * pMembershipTrustee,
TRUSTEE * pMemberTrustee
);
Parameters
pMembershipTrustee
[in]
Address of the TRUSTEE structure that identifies the membership trustee to which pMemberTrustee will be added.
pMemberTrustee
[in]
Address of the TRUSTEE structure that identifies the trustee to be added to pMembershipTrustee.
Return Code
S_OK
The trustee was successfully added to the membership trustee.
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.
SEC_E_NOMEMBERSHIPSUPPORT
The trustee pointed to by pMembershipTrustee does not support memberships.
E_INVALIDARG
pMembershipTrustee or pMemberTrustee was a null pointer.
E_FAIL
A provider-specific error occurred.
See Also
ITrusteeGroupAdmin, ITrusteeGroupAdmin::DeleteMember, TRUSTEE