MDAC 2.5 SDK - Technical Articles


 

ITrusteeGroupAdmin::DeleteMember

Removes a trustee from a membership trustee.

HRESULT DeleteMember ( 
   TRUSTEE *   pMembershipTrustee,
   TRUSTEE *   pMemberTrustee
);

Parameters

pMembershipTrustee

[in]
Address of the TRUSTEE structure that identifies the trustee from which pMemberTrustee is to be removed.

pMemberTrustee

[in]
Address of the TRUSTEE structure that identifies the trustee to be removed from pMembershipTrustee.

Return Code

S_OK

The trustee was successfully removed from 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 object.

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::AddMember, TRUSTEE