Platform SDK: Access Control

SetSecurityDescriptorRMControl

The SetSecurityDescriptorRMControl function sets the resource manager control bits in the SECURITY_DESCRIPTOR structure.

DWORD SetSecurityDescriptorRMControl(
  PSECURITY DESCRIPTOR SecurityDescriptor,
  PUCHAR RMControl
);

Parameters

SecurityDescriptor
[in] Pointer to a SECURITY_DESCRIPTOR structure that contains the resource manager control bits.
RMControl
[out] Pointer to the bit field value the resource manager control bits in the SECURITY_DESCRIPTOR structure will be set to. If the value of this parameter is NULL, the resource manager control bits will be cleared.

Return Values

The return value is ERROR_SUCCESS.

Remarks

The resource manager control bits are eight bits in the Sbz1 member of the SECURITY_INFORMATION structure that contains information specific to the resource manager accessing the structure. These bits should be accessed only through the GetSecurityDescriptorRMControl and SetSecurityDescriptorRMControl functions.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Winbase.h; include Windows.h.
  Library: Use Advapi32.lib.

See Also

Access Control Overview, Access Control Functions, GetSecurityDescriptorRMControl, SECURITY_DESCRIPTOR, SECURITY_INFORMATION