RtlValidSecurityDescriptor - NtDoc

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

/**
 * The RtlValidSecurityDescriptor routine checks a given security descriptor's validity.
 *
 * \param SecurityDescriptor Pointer to the \ref SECURITY_DESCRIPTOR to be checked.
 * \return Returns TRUE if the security descriptor is valid, or FALSE otherwise.
 * \remarks The routine checks the validity of an absolute-format security descriptor. To check the validity of a self-relative security descriptor, use the \ref RtlValidRelativeSecurityDescriptor routine instead.
 * \see https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-rtlvalidsecuritydescriptor
 */
_Check_return_
NTSYSAPI
BOOLEAN
NTAPI
RtlValidSecurityDescriptor(
    _In_ PSECURITY_DESCRIPTOR SecurityDescriptor
    );

#endif

View code on GitHub
// wdm.h

NTSYSAPI BOOLEAN RtlValidSecurityDescriptor(
  [in] PSECURITY_DESCRIPTOR SecurityDescriptor
);

View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-wdm-rtlvalidsecuritydescriptor)

RtlValidSecurityDescriptor function

Description

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

Parameters

SecurityDescriptor [in]

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.

See also

RtlCreateSecurityDescriptor

RtlLengthSecurityDescriptor

RtlSetDaclSecurityDescriptor

RtlValidRelativeSecurityDescriptor

SECURITY_DESCRIPTOR