RtlValidSecurityDescriptor function (wdm.h)

The RtlValidSecurityDescriptor routine checks a given security descriptor's validity.

Syntax

NTSYSAPI BOOLEAN RtlValidSecurityDescriptor(
  [in] PSECURITY_DESCRIPTOR SecurityDescriptor
);

Parameters

[in] SecurityDescriptor

Pointer to the SECURITY_DESCRIPTOR to be checked.

Return value

RtlValidSecurityDescriptor returns TRUE if the given descriptor is valid.

Remarks

The routine checks the validity of an absolute-format security descriptor. To check the validity of a self-relative security descriptor, use the RtlValidRelativeSecurityDescriptor routine instead.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL

See also

RtlCreateSecurityDescriptor

RtlLengthSecurityDescriptor

RtlSetDaclSecurityDescriptor

RtlValidRelativeSecurityDescriptor

SECURITY_DESCRIPTOR