RtlLengthSid - NtDoc

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

NTSYSAPI
ULONG
NTAPI
RtlLengthSid(
    _In_ PSID Sid
    );

#endif

View code on GitHub
// ntifs.h

NTSYSAPI ULONG RtlLengthSid(
  [in] PSID Sid
);

View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

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

RtlLengthSid function

Description

The RtlLengthSid routine returns the length, in bytes, of a valid security identifier (SID).

Parameters

Sid [in]

Pointer to the SID structure. Must point to a valid SID.

Return value

If the SID structure is valid, RtlLengthSid returns the length, in bytes, of the SID structure.

If the SID structure is not valid, the return value is undefined. Before calling RtlLengthSid, pass the SID to RtlValidSid to verify that it is valid.

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

RtlLengthRequiredSid

RtlSubAuthoritySid

RtlValidSid

SID