PAGEEXECUTEREAD
PAGE_EXECUTE_READ is a memory protection constant used in the Windows API to specify the access rights of a region of virtual memory. It indicates that the pages can be both executed and read, but cannot be written. The constant is part of the PAGE_ family of protection flags defined in the Windows headers.
In practice, PAGE_EXECUTE_READ is supplied to memory management functions such as VirtualAlloc and VirtualProtect to set
Common usage patterns include dynamic code generation and Just-In-Time compilation, where generated code needs to be
Security considerations emphasize the principle of W^X (write XOR execute): keeping memory regions non-writable after code
See also PAGE_EXECUTE, PAGE_EXECUTE_READWRITE, VirtualAlloc, and VirtualProtect for related memory protection concepts.