#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
);
View code on GitHub
// wdm.h
NTSYSAPI BOOLEAN RtlValidSecurityDescriptor(
[in] PSECURITY_DESCRIPTOR SecurityDescriptor
);
View the official Windows Driver Kit DDI reference
This function is documented in Windows Driver Kit.
The RtlValidSecurityDescriptor routine checks a given security descriptor's validity.
SecurityDescriptor
[in]Pointer to the SECURITY_DESCRIPTOR to be checked.
RtlValidSecurityDescriptor returns TRUE if the given descriptor is valid.
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.
RtlValidRelativeSecurityDescriptor