O'Reilly logo

Windows® via C/C++, Fifth Edition by Christophe Nasarre, Jeffrey Richter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required