#ifndef _NTRTL_H
_Must_inspect_result_
NTSYSAPI
BOOLEAN
NTAPI
RtlEqualSid(
_In_ PSID Sid1,
_In_ PSID Sid2
);
View code on GitHub
// ntifs.h
NTSYSAPI BOOLEAN RtlEqualSid(
[in] PSID Sid1,
[in] PSID Sid2
);
View the official Windows Driver Kit DDI reference
This function is documented in Windows Driver Kit.
The RtlEqualSid routine determines whether two security identifier (SID) values are equal. Two SIDs must match exactly to be considered equal.
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.
RtlEqualSid returns TRUE if the SID structures are equal, FALSE otherwise. If either SID structure is invalid, the return value is undefined.
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.