Managing Virtual Memory in Win32

Randy Kath · 2006

Determining which function or set of functions to use for managing memory in your Win32A‚™ application is difficult without a solid understanding of how each group of functions works and the overall impact they each have on the Microsoft® Windows NTA‚™ operating system. In an effort to simplify these decisions, this technical article focuses on the Win32 virtual memory management functions: which ones are available, how they are used, and how their use affects the operating system. The following topics are discussed in this article: Reserving, committing, and freeing virtual memory Changing protection on pages of virtual memory Locking pages of virtual memory Querying a process's virtual memory A sample application called ProcessWalker accompanies this technical article on the Microsoft Developer Network CD. This sample application is useful for exploring the virtual address space of a process. It also employs the use of virtual memory functions for implementing a linked list structure.

Read the paper · More papers on PaperTik