RtlLengthSid function

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

Syntax

NTSYSAPI ULONG RtlLengthSid(
  PSID Sid
);

Parameters

Sid

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 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
IRQL "<= APC_LEVEL"

See Also

RtlEqualPrefixSid

RtlEqualSid

RtlInitializeSid

RtlLengthRequiredSid

RtlSubAuthoritySid

RtlValidSid

SID