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


CSecurityDesc::SetControl

Sets the control bits of a security descriptor.

bool SetControl(
   SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest,
   SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet 
) throw( );

Параметры

  • ControlBitsOfInterest
    A SECURITY_DESCRIPTOR_CONTROL mask that indicates the control bits to set. For a list of the flags which can be set, see SetSecurityDescriptorControl.

  • ControlBitsToSet
    A SECURITY_DESCRIPTOR_CONTROL mask that indicates the new values for the control bits specified by the ControlBitsOfInterest mask. This parameter can be a combination of the flags listed for the ControlBitsOfInterest parameter.

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

Returns true on success, false on failure.

Заметки

This method is only available on Windows 2000 and later, as it calls SetSecurityDescriptorControl.

Требования

Header: atlsecurity.h

См. также

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

CSecurityDesc Class

CSecurityDesc Members

CSecurityDesc::SetDacl

CSecurityDesc::SetGroup

CSecurityDesc::SetOwner

CSecurityDesc::SetSacl

CSecurityDesc::GetControl