SID (Structures)
Last changed: -209.87.228.158

.
Summary
The security identifier (SID) structure is a variable-length structure used to uniquely identify users or groups.

C# Definition:

[StructLayout(LayoutKind.Sequential)]
struct SID
{
   byte Revision;
   byte SubAuthorityCount;
   SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
   [MarshalAs(UnmanagedType.ByValArray, SizeConst=ANYSIZE_ARRAY)]
   uint SubAuthority[ANYSIZE_ARRAY];
}

VB Definition:

  <StructLayout(LayoutKind.Sequential)> _
  Public Structure SID
    Public Revision As Byte
    Public SubAuthorityCount As Byte
    Public IdentifierAuthority As SID_IDENTIFIER_AUTHORITY
    <MarshalAs(UnmanagedType.ByValArray, SizeConst:=ANYSIZE_ARRAY)> _
    Public SubAuthority(ANYSIZE_ARRAY) As UInt32
  End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation
SID on MSDN