TOKEN_PRIVILEGES (Structures)
Last changed: -212.24.152.163

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

C# Definition:

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

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