GetSidSubAuthorityCount

  PUCHAR GetSidSubAuthorityCount(Sid)    
  PSID Sid;    

The GetSidSubAuthorityCount function returns the address of the sub-authority count field of an SID security identifier.

Parameters

Sid

Pointer to the SID data structure whose count field address the function will return.

Return Value

If the function is successful, the return value is the address of the sub-authority count field of the specified SID.

If the SID passed to the function is invalid, the return value is undefined.

See Also

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