RtlLengthSid function (ntifs.h)
The RtlLengthSid routine returns the length, in bytes, of a valid security identifier (SID).
Syntax
NTSYSAPI ULONG RtlLengthSid(
[in] PSID Sid
);
Parameters
[in] 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 Windows security model for driver developers and the documentation on these topics in the Windows SDK.
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Header | ntifs.h (include Ntifs.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | <= APC_LEVEL |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for