RtlLengthRequiredSid - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
ULONG
NTAPI
RtlLengthRequiredSid(
    _In_ ULONG SubAuthorityCount
    );

#endif

View code on GitHub
// ntifs.h

NTSYSAPI ULONG RtlLengthRequiredSid(
  [in] ULONG SubAuthorityCount
);
View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntifs-rtllengthrequiredsid)

RtlLengthRequiredSid function

Description

The RtlLengthRequiredSid routine returns the length, in bytes, of the buffer required to store a security identifier (SID) with a specified number of subauthorities.

Parameters

SubAuthorityCount [in]

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.

See also

RtlEqualPrefixSid

RtlEqualSid

RtlInitializeSid

RtlLengthSid

RtlSubAuthoritySid

RtlValidSid

SID