Protection Attributes

Individual pages of physical storage allocated can be assigned different protection attributes. The protection attributes are shown in Table 13-3.

Table 13-3. Protection Attributes for Memory Pages

Protection Attribute

Description

PAGE_NOACCESS

Attempts to read from, write to, or execute code in this page raise an access violation.

PAGE_READONLY

Attempts to write to or execute code in this page raise an access violation.

PAGE_READWRITE

Attempts to execute code in this page raise an access violation.

PAGE_EXECUTE

Attempts to read or write memory in this page raise an access violation.

PAGE_EXECUTE_READ

Attempts to write to memory in this page raise an access violation.

PAGE_EXECUTE_READWRITE

There is nothing you can do to this page to raise ...

Get Windows® via C/C++, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.