TOKEN_PRIVILEGES (Structures)
Last changed: -142.126.162.230

.
Summary
Contains information about a set of privileges for an access token.

C# Definition:

struct TOKEN_PRIVILEGES {
   public int PrivilegeCount;
   [MarshalAs(UnmanagedType.ByValArray, SizeConst=ANYSIZE_ARRAY)]
   public LUID_AND_ATTRIBUTES [] Privileges;
}

C# Definition:

struct TOKEN_PRIVILEGES {
   public long PrivilegeCount;
   private LUID_AND_ATTRIBUTES[] _privileges;
   public LUID_AND_ATTRIBUTES[] Privileges
   {
      get
      {
     if ( this._privileges == null )
        this._privileges = new LUID_AND_ATTRIBUTES[2];
     return this._privileges;
      }
      set {this._privileges = value;}
   }

}

VB Definition:

Structure TOKEN_PRIVILEGES
   Public TODO
End Structure

User-Defined Field Types:

LUID_AND_ATTRIBUTES

Notes:

If you only need one privilege, you can define the last field as a single LUID_AND_ATTRIBUTES field instead of an array.

Documentation