EqualSid function (securitybaseapi.h)
The EqualSid function tests two security identifier (SID) values for equality. Two SIDs must match exactly to be considered equal.
Syntax
BOOL EqualSid(
[in] PSID pSid1,
[in] PSID pSid2
);
Parameters
[in] pSid1
A pointer to the first SID structure to compare. This structure is assumed to be valid.
[in] pSid2
A pointer to the second SID structure to compare. This structure is assumed to be valid.
Return value
If the SID structures are equal, the return value is nonzero.
If the SID structures are not equal, the return value is zero. To get extended error information, call GetLastError.
If either SID structure is not valid, the return value is undefined.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | securitybaseapi.h (include Windows.h) |
Library | Advapi32.lib |
DLL | Advapi32.dll |