Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

35 rindas
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. }