GetLengthSid

  DWORD GetLengthSid(Sid)    
  PSID Sid;    

The GetLengthSid function returns the length, in bytes, of a structurally valid SID security identifier.

Parameters

Sid

Pointer to the SID data structure whose length is to be returned. The SID's structure is assumed to be valid. If the SID is invalid, the function return value is undefined.

Return Value

The return value is the length, in bytes, of the SID if the function is successful. If the SID is not valid, the return value is undefined.

See Also

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