RtlValidSid routine

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


BOOLEAN RtlValidSid(
  _In_ PSID Sid
);

Parameters

Sid [in]

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

 

 

Send comments about this topic to Microsoft

Show: