EqualSid

  BOOL EqualSid(Sid1, Sid2)    
  PSID Sid1;    
  PSID Sid2;    

The EqualSid function tests two SID security identifier values for equality. Two SIDs must match exactly to be considered equally.

Parameters

Sid1

Pointer to a valid SID to compare. valid.

Sid2

Pointer to a valid SID to compare.

Return Value

If the value of Sid1 is equal to Sid2, the function return value is TRUE.

If the SIDs are not equal, the function return value is FALSE. Call GetLastError for more detailed error information.

If either SID is invalid, the function return value is undefined.

See Also

CopySid, GetLengthSid, InitializeSid, IsValidSid, GetSidIdentifierAuthority, GetSidLengthRequired, GetSidSubAuthority, GetSidSubAuthorityCount