RtlValidSid function (ntifs.h)
The RtlValidSid routine validates a security identifier (SID) by verifying that the revision number is within a known range and that the number of subauthorities is less than the maximum.
Syntax
NTSYSAPI BOOLEAN RtlValidSid(
[in] PSID Sid
);
Parameters
[in] Sid
Pointer to the SID structure to validate.
Return value
RtlValidSid returns TRUE if the security descriptor is valid, FALSE otherwise.
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 (kernel mode); Ntdll.dll (user mode) |
IRQL | <= APC_LEVEL |