GetSidLengthRequired

  DWORD GetSidLengthRequired(SubAuthorityCount)    
  UCHAR SubAuthorityCount;    

The GetSidLengthRequired function returns the length, in bytes, required to store a SID with a specified number of sub-authorities.

Parameters

SubAuthorityCount

Specifies the number of sub-authorities to be stored in the SID.

Return Value

The return value is the length in bytes required to store the SID. This function cannot fail.

See Also

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