RtlLengthRequiredSid function

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(
  ULONG SubAuthorityCount
);

Parameters

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 the documentation on these topics in the Microsoft Windows SDK.

Requirements

   
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe (kernel mode); Ntdll.dll (user mode)
IRQL "<= APC_LEVEL"

See Also

RtlEqualPrefixSid

RtlEqualSid

RtlInitializeSid

RtlLengthSid

RtlSubAuthoritySid

RtlValidSid

SID