You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 regels
786 B

  1. // <copyright file="NativeStructs.cs" company="Nick Lowe">
  2. // Copyright © Nick Lowe 2009
  3. // </copyright>
  4. // <author>Nick Lowe</author>
  5. // <email>nick@int-r.net</email>
  6. // <url>http://processprivileges.codeplex.com/</url>
  7. namespace ProcessPrivileges
  8. {
  9. using System.Runtime.InteropServices;
  10. [StructLayout(LayoutKind.Sequential)]
  11. internal struct Luid
  12. {
  13. internal int LowPart;
  14. internal int HighPart;
  15. }
  16. [StructLayout(LayoutKind.Sequential)]
  17. internal struct LuidAndAttributes
  18. {
  19. internal Luid Luid;
  20. internal PrivilegeAttributes Attributes;
  21. }
  22. [StructLayout(LayoutKind.Sequential)]
  23. internal struct TokenPrivilege
  24. {
  25. internal int PrivilegeCount;
  26. internal LuidAndAttributes Privilege;
  27. }
  28. }