Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

SID (Structures)
 
.
Summary
The SID_IDENTIFIER_AUTHORITY structure represents the top-level authority of a security identifier (SID).
Summary
The security identifier (SID) structure is a variable-length structure used to uniquely identify users or groups.

C# Definition:

struct SID_IDENTIFIER_AUTHORITY
{
   [MarshalAs(UnmanagedType.ByValArray, SizeConst=6)]
   public byte[] Value;

   public SID_IDENTIFIER_AUTHORITY(byte[] value)
   {
       Value = value;
   }

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:

  Structure SID_IDENTIFIER_AUTHORITY
    <MarshalAs(UnmanagedType.ByValArray, SizeConst:=6)> _
    Public Value() As Byte

    Public Sub New(ByVal val As Byte())
      Value = val
    End Sub
  <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:

Used by InitializeSid

None.

Documentation
Documentation
SID on MSDN

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions