ISecurityProperty::GetDirectCreatorSID method (comsvcs.h)

In MTS 2.0, this method retrieves the security identifier of the external process that directly created the current object. Do not use this method in COM+.

Syntax

HRESULT GetDirectCreatorSID(
  [out] PSID *pSID
);

Parameters

[out] pSID

A reference to the security ID of the process that directly created the current object.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following values.

Return code Description
S_OK
The security ID of the process that directly created the current object is returned in the parameter pSid.
CONTEXT_E_NOCONTEXT
The current object does not have a context associated with it because either the component was not imported into an application or the object was not created with one of the COM+ CreateInstance 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