MDAC Technical Articles

ITrusteeAdmin::DeleteTrustee

Removes a trustee from the collection of trustees known by the data source object.

HRESULT DeleteTrustee ( 
   TRUSTEE *   pTrustee
);

Parameters

pTrustee
[in]
Address of a TRUSTEE structure identifying the trustee to be removed.

Return Code

S_OK
The trustee was successfully removed.
SEC_E_PERMISSIONDENIED
Requester does not have permissions for the operation.
SEC_E_BADTRUSTEEID
pTrustee did not point to a valid TRUSTEE structure.
SEC_E_NOTRUSTEEID
pTrustee was not a trustee for the current data source object.
E_INVALIDARG
pTrustee was a null pointer.
E_FAIL
A provider-specific error occurred.

See Also

ITrusteeAdmin, ITrusteeAdmin::CreateTrustee, TRUSTEE