
122
CHAPTER 5 MEMORY MANAGEMENT, MEMORY-MAPPED FILES, AND DLLS
The parameter is the address of a structure containing infor-
mation on the system’s page size and the application’s physical memory address.
Heaps
Windows maintains pools of memory in heaps. A process can contain several
heaps, and you allocate memory from these heaps.
One heap is often sufficient, but there are good reasons, explained below, for
multiple heaps. If a single heap is sufficient, just use the C library memory
management functions (
, , , ).
Heaps are Windows objects; therefore, they have handles. The heap handle is
necessary when you’re allocating memory. Each process has ...