RtlEqualSid function (ntifs.h)

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(
  [in] PSID Sid1,
  [in] PSID Sid2
);

Parameters

[in] Sid1

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

[in] 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 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 Any

See also

RtlCopySid

RtlEqualPrefixSid

RtlValidSid

SID