Memory Management
The processes of dynamic allocation, which consists of committing and freeing virtual memory directly by using a designated API (VirtualXxxx), provide an opportunity to utilize the maximum capability of the virtual memory architecture. However, the use of those functions implies that you have knowledge of the structure and virtual memory architecture of Windows Embedded CE 6.0 and, possibly, of the processor physical architecture.
Table 3–4 describes the main API for working with virtual memory and its purpose.
Table 3–4. Functions for virtual memory API.
Function | Purpose |
|---|---|
Enables you to modify memory attributes on a page level. | |
VirtualSetAttributesEx | Accessible only in kernel mode. |
VirtualProtectEx | Sets access protection for the page ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access