RtlLengthSid routine

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

Syntax


ULONG RtlLengthSid(
  _In_ PSID 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 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

 

 

Send comments about this topic to Microsoft

Show: