WindowsFlags.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. namespace Ryujinx.Memory.WindowsShared
  3. {
  4. [Flags]
  5. enum AllocationType : uint
  6. {
  7. CoalescePlaceholders = 0x1,
  8. PreservePlaceholder = 0x2,
  9. Commit = 0x1000,
  10. Reserve = 0x2000,
  11. Decommit = 0x4000,
  12. ReplacePlaceholder = 0x4000,
  13. Release = 0x8000,
  14. ReservePlaceholder = 0x40000,
  15. Reset = 0x80000,
  16. Physical = 0x400000,
  17. TopDown = 0x100000,
  18. WriteWatch = 0x200000,
  19. LargePages = 0x20000000
  20. }
  21. [Flags]
  22. enum MemoryProtection : uint
  23. {
  24. NoAccess = 0x01,
  25. ReadOnly = 0x02,
  26. ReadWrite = 0x04,
  27. WriteCopy = 0x08,
  28. Execute = 0x10,
  29. ExecuteRead = 0x20,
  30. ExecuteReadWrite = 0x40,
  31. ExecuteWriteCopy = 0x80,
  32. GuardModifierflag = 0x100,
  33. NoCacheModifierflag = 0x200,
  34. WriteCombineModifierflag = 0x400
  35. }
  36. [Flags]
  37. enum FileMapProtection : uint
  38. {
  39. PageReadonly = 0x02,
  40. PageReadWrite = 0x04,
  41. PageWriteCopy = 0x08,
  42. PageExecuteRead = 0x20,
  43. PageExecuteReadWrite = 0x40,
  44. SectionCommit = 0x8000000,
  45. SectionImage = 0x1000000,
  46. SectionNoCache = 0x10000000,
  47. SectionReserve = 0x4000000
  48. }
  49. }