Techwiki:Memory Protection constants

From ReactOS Wiki
Jump to: navigation, search

These values were retrieved by using WinDbg and dumping invalid PTEs with the "!pte" command.

Pte.Soft.Protection WinDbg display Comment
0x00 not valid
0x01 DemandZero / Protect: 1 - Readonly
0x02 DemandZero / Protect: 2 - Execute
0x03 DemandZero / Protect: 3 - ExecuteRead
0x04 DemandZero / Protect: 4 - ReadWrite
0x05 DemandZero / Protect: 5 - ReadWriteCopy
0x06 DemandZero / Protect: 6 - ReadWriteExecute
0x07 DemandZero / Protect: 7 - ReadWriteCopyExecute
0x08 DemandZero / Protect: 8 - UC UC = Uncached
0x09 DemandZero / Protect: 9 - Readonly UC UC = Uncached
0x0A DemandZero / Protect: a - Execute UC UC = Uncached
0x0B DemandZero / Protect: b - ExecuteRead UC UC = Uncached
0x0C DemandZero / Protect: c - ReadWrite UC UC = Uncached
0x0D DemandZero / Protect: d - ReadWriteCopy UC UC = Uncached
0x0E DemandZero / Protect: e - ReadWriteExecute UC UC = Uncached
0x0F DemandZero / Protect: f - ReadWriteCopyExecute UC UC = Uncached
0x10 DemandZero / Protect: 10 - Decommitted
0x11 DemandZero / Protect: 11 - Readonly G G = GuardPage
0x12 DemandZero / Protect: 12 - Execute G G = GuardPage
0x13 DemandZero / Protect: 13 - ExecuteRead G G = GuardPage
0x14 DemandZero / Protect: 14 - ReadWrite G G = GuardPage
0x15 DemandZero / Protect: 15 - ReadWriteCopy G G = GuardPage
0x16 DemandZero / Protect: 16 - ReadWriteExecute G G = GuardPage
0x17 DemandZero / Protect: 17 - ReadWriteCopyExecute G G = GuardPage
0x18 PageFile: 0 / Offset: 0 / Protect: 18 - No Access
0x19 DemandZero / Protect: 19 - Readonly WC WC = WriteCombine
0x1A DemandZero / Protect: 1a - Execute WC WC = WriteCombine
0x1B DemandZero / Protect: 1b - ExecuteRead WC WC = WriteCombine
0x1C DemandZero / Protect: 1c - ReadWrite WC WC = WriteCombine
0x1D DemandZero / Protect: 1d - ReadWriteCopy WC WC = WriteCombine
0x1E DemandZero / Protect: 1e - ReadWriteExecute WC WC = WriteCombine
0x1F DemandZero / Protect: 1f - Outswapped kernel stack