#ifndef _NTRTL_H
NTSYSAPI
ULONG
NTAPI
RtlLengthSid(
_In_ PSID Sid
);
View code on GitHub
// ntifs.h
NTSYSAPI ULONG RtlLengthSid(
[in] PSID Sid
);
View the official Windows Driver Kit DDI reference
This function is documented in Windows Driver Kit.
The RtlLengthSid routine returns the length, in bytes, of a valid security identifier (SID).
Sid
[in]Pointer to the SID structure. Must point to a valid SID.
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.
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.