CSecurityDesc::SetControl
Sets the control bits of a security descriptor.
bool SetControl(
SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest,
SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet
) throw( );
Parameters
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.
Return Value
Returns true on success, false on failure.
Remarks
This method is available only on Windows 2000 and later, as it calls SetSecurityDescriptorControl.
Requirements
Header: atlsecurity.h