Windows Driver Kit: Installable File System Drivers
RtlLengthSid
The RtlLengthSid routine returns the length, in bytes, of a valid security identifier (SID).
ULONG
RtlLengthSid(
IN 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.
Comments
For more information about security and access control, see the documentation on these topics in the Microsoft Windows SDK.
Requirements
IRQL: < DISPATCH_LEVEL
Headers: Declared in Ntifs.h. Include Ntifs.h.
See Also
RtlEqualPrefixSid, RtlEqualSid, RtlInitializeSid, RtlLengthRequiredSid, RtlSubAuthoritySid, RtlValidSid, SID