25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NativeStructs.cs 786 B

1234567891011121314151617181920212223242526272829303132333435
  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. }