RtlSetControlSecurityDescriptor - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
NTSTATUS
NTAPI
RtlSetControlSecurityDescriptor(
     _Inout_ PSECURITY_DESCRIPTOR SecurityDescriptor,
     _In_ SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest,
     _In_ SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet
     );

#endif

View code on GitHub
NTSTATUS NTAPI RtlSetControlSecurityDescriptor (
     IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
     IN SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest,
     IN SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet
     );
View the official Win32 development documentation

NtDoc

No description available.

Win32 development documentation (rtlsetcontrolsecuritydescriptor)

RtlSetControlSecurityDescriptor function

Sets the control bits of a security descriptor.

Parameters

SecurityDescriptor [in]

A pointer to a SECURITY_DESCRIPTOR structure whose control and revision information are set.

ControlBitsOfInterest [in]

A SECURITY_DESCRIPTOR_CONTROL mask that indicates the control bits to set.

ControlBitsToSet [in]

A SECURITY_DESCRIPTOR_CONTROL mask that indicates the new values for the control bits specified by the ControlBitsOfInterest mask.

Return value

An NTSTATUS code. For more information, see Using NTSTATUS values.

Remarks

This function has no associated import library or header file; you must call it using the LoadLibrary and GetProcAddress functions. The API is exported from ntdll.dll.

Requirements

Requirement Value
DLL ntdll.dll