Поделиться через


AtlSetOwnerSid

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

inline bool AtlSetOwnerSid(
   HANDLE hObject,
   SE_OBJECT_TYPE ObjectType,
   const CSid& rSid
) throw(...);

Параметры

  • hObject
    Handle to the object for which to set security information.

  • ObjectType
    Specifies a value from the SE_OBJECT_TYPE enumeration that indicates the type of object identified by the hObject parameter.

  • rSid
    The CSid object containing the new security information.

Возвращаемое значение

Returns true on success, false on failure.

Требования

Header: atlsecurity.h

См. также

Основные понятия

Security Global Functions

AtlGetOwnerSid

CSid Class