This topic has not yet been rated - Rate this topic

AtlGetOwnerSid

Call this function to retrieve the owner security identifier (SID) of an object.

inline bool AtlGetOwnerSid(
   HANDLE hObject,
   SE_OBJECT_TYPE ObjectType,
   CSid* pSid 
) throw(...);

Parameters

hObject
Handle to the object from which to retrieve security information.
ObjectType
Specifies a value from the SE_OBJECT_TYPE enumeration that indicates the type of object identified by the hObject parameter.
pSid
Pointer to a CSid object which will contain the new security information.

Return Value

Returns true on success, false on failure.

See Also

Security Global Functions | AtlSetOwnerSid | CSid Class

Did you find this helpful?
(1500 characters remaining)