#ifndef _NTRTL_H
NTSYSAPI
ULONG
NTAPI
RtlLengthRequiredSid(
_In_ ULONG SubAuthorityCount
);
View code on GitHub
// ntifs.h
NTSYSAPI ULONG RtlLengthRequiredSid(
[in] ULONG SubAuthorityCount
);
View the official Windows Driver Kit DDI reference
This function is documented in Windows Driver Kit.
The RtlLengthRequiredSid routine returns the length, in bytes, of the buffer required to store a security identifier (SID) with a specified number of subauthorities.
SubAuthorityCount
[in]The number of subauthorities to be stored in the SID.
RtlLengthRequiredSid returns the length, in bytes, of the buffer required to store the SID structure.
For more information about security and access control, see Windows security model for driver developers and the documentation on these topics in the Windows SDK.