ISecurityProperty::ReleaseSID method (comsvcs.h)

Releases the security identifier returned by one of the other ISecurityProperty methods.

Syntax

HRESULT ReleaseSID(
  [in] PSID pSID
);

Parameters

[in] pSID

A reference to a security ID.

Return value

This method can return the following values.

Return code Description
S_OK
The method completed successfully.
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.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

IObjectContext

ISecurityProperty