Releases a security ID that was obtained from the GetDirectCallerSID, GetDirectCreatorSID, GetOriginalCallerSID, or GetOriginalCreatorSID method.
Provided By
HRESULT ISecurityProperty::ReleaseSID (
PSID pSid
);
Parameters
pSid
[in] A reference to a security ID that was obtained by invoking one of the ISecurityProperty methods.
Return Values
S_OK
The security ID, passed in the pSid parameter, was released.
E_INVALIDARG
The argument passed in the pSid parameter is not a reference to a security ID.
Remarks
You should always invoke the ReleaseSID method to release any security ID pointers returned by the GetDirectCallerSID, GetDirectCreatorSID, GetOriginalCallerSID, and GetOriginalCreatorSID methods of the ISecurityProperty interface.
See Also
Programmatic Security, Advanced Security Methods, IObjectContext Interface