IsValidSid

  BOOL IsValidSid(Sid)    
  PSID Sid;    

The IsValidSid function validates an SID by verifying that the revision number is within a known range and that the number of sub-authorities is less than the maximum.

Parameters

Sid

Pointer to the SID structure to validate.

Return Value

The return value is TRUE if the structure of the SID is valid. Otherwise, the return value is FALSE. Use the GetLastError function to obtain extended error information.

See Also

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