RtlValidSid function

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(
  PSID Sid
);

Parameters

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 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 (kernel mode); Ntdll.dll (user mode)
IRQL "<= APC_LEVEL"

See Also

RtlEqualPrefixSid

RtlEqualSid

RtlInitializeSid

RtlLengthRequiredSid

RtlLengthSid

RtlSubAuthoritySid

SID