RtlEqualSid - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

_Must_inspect_result_
NTSYSAPI
BOOLEAN
NTAPI
RtlEqualSid(
    _In_ PSID Sid1,
    _In_ PSID Sid2
    );

#endif

View code on GitHub
// ntifs.h

NTSYSAPI BOOLEAN RtlEqualSid(
  [in] PSID Sid1,
  [in] PSID Sid2
);

View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntifs-rtlequalsid)

RtlEqualSid function

Description

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

Parameters

Sid1 [in]

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

Sid2 [in]

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.

See also

RtlCopySid

RtlEqualPrefixSid

RtlValidSid

SID