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