RtlEqualSid function

The RtlEqualSid routine determines whether two security identifier (SID) values are equal. Two SIDs must match exactly to be considered equal.

Syntax

NTSYSAPI BOOLEAN RtlEqualSid(
  PSID Sid1,
  PSID Sid2
);

Parameters

Sid1

Pointer to the first SID structure to compare. Must point to a valid SID.

Sid2

Pointer to the second SID structure to compare. Must point to a valid SID.

Return Value

RtlEqualSid returns TRUE if the SID structures are equal, FALSE otherwise. If either SID structure is invalid, the return value is undefined.

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 Any

See Also

RtlCopySid

RtlEqualPrefixSid

RtlValidSid

SID