#ifndef _NTRTL_H
/**
* The RtlLengthSecurityDescriptor routine returns the size of a given security descriptor.
*
* \param SecurityDescriptor A pointer to a \ref SECURITY_DESCRIPTOR structure whose length the function retrieves.
* \return Returns the length, in bytes, of the SECURITY_DESCRIPTOR structure.
* \see https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-rtllengthsecuritydescriptor
*/
NTSYSAPI
ULONG
NTAPI
RtlLengthSecurityDescriptor(
_In_ PSECURITY_DESCRIPTOR SecurityDescriptor
);
View code on GitHub
// wdm.h
NTSYSAPI ULONG RtlLengthSecurityDescriptor(
[in] PSECURITY_DESCRIPTOR SecurityDescriptor
);
View the official Windows Driver Kit DDI reference
This function is documented in Windows Driver Kit.
The RtlLengthSecurityDescriptor routine returns the size of a given security descriptor.
SecurityDescriptor
[in]Pointer to a SECURITY_DESCRIPTOR.
RtlLengthSecurityDescriptor returns the size in bytes of the descriptor.