RtlLengthSecurityDescriptor - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#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
    );

#endif

View code on GitHub
// wdm.h

NTSYSAPI ULONG RtlLengthSecurityDescriptor(
  [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-rtllengthsecuritydescriptor)

RtlLengthSecurityDescriptor function

Description

The RtlLengthSecurityDescriptor routine returns the size of a given security descriptor.

Parameters

SecurityDescriptor [in]

Pointer to a SECURITY_DESCRIPTOR.

Return value

RtlLengthSecurityDescriptor returns the size in bytes of the descriptor.

See also

RtlCreateSecurityDescriptor

RtlSetDaclSecurityDescriptor

RtlValidSecurityDescriptor

SECURITY_DESCRIPTOR