RtlLengthRequiredSid function (ntifs.h)
The RtlLengthRequiredSid routine returns the length, in bytes, of the buffer required to store a security identifier (SID) with a specified number of subauthorities.
Syntax
NTSYSAPI ULONG RtlLengthRequiredSid(
[in] ULONG SubAuthorityCount
);
Parameters
[in] SubAuthorityCount
The number of subauthorities to be stored in the SID.
Return value
RtlLengthRequiredSid returns the length, in bytes, of the buffer required to store the SID structure.
Remarks
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.
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Header | ntifs.h (include Ntifs.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe (kernel mode); Ntdll.dll (user mode) |
IRQL | <= APC_LEVEL |