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.

39 lines
931 B

6 years ago
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Microsoft.Win32.Security.Win32Structs
  4. {
  5. using HANDLE = IntPtr;
  6. using DWORD = UInt32;
  7. using LONG = Int32;
  8. using UCHAR = Byte;
  9. using BOOL = Int32;
  10. using LARGE_INTEGER = Int64;
  11. using PACL = IntPtr;
  12. using PSID = IntPtr;
  13. using GUID = Guid;
  14. using PVOID = IntPtr;
  15. using LPWSTR = String;
  16. [StructLayout(LayoutKind.Sequential)]
  17. public struct LUID
  18. {
  19. public DWORD LowPart;
  20. public LONG HighPart;
  21. }
  22. [StructLayout(LayoutKind.Sequential)]
  23. public struct TOKEN_PRIVILEGES
  24. {
  25. public DWORD PrivilegeCount;
  26. // Followed by this:
  27. //LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY];
  28. }
  29. [StructLayout(LayoutKind.Sequential)]
  30. public struct LUID_AND_ATTRIBUTES
  31. {
  32. public LUID Luid;
  33. public DWORD Attributes;
  34. }
  35. }