[StructLayout(LayoutKind.Sequential)]
struct TOKEN_PRIVILEGES {
public int PrivilegeCount;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=ANYSIZE_ARRAY)]
public LUID_AND_ATTRIBUTES [] Privileges;
}
Structure TOKEN_PRIVILEGES
Public TODO
End Structure
If you only need one privilege, you can define the last field as a single LUID_AND_ATTRIBUTES field instead of an array.