Virtual Memory

The virtual address space for each process is much larger than the total physical memory available to all processes. To increase the size of memory, the system uses the disk for additional storage. The total amount of memory available to all processes is the sum of physical memory and the free space on disk available to the paging file, a disk file used to increase memory. The virtual memory space is organized into pages, or units of memory. The size of a page depends on the host computer and is determined by using the GetSystemInfo function. On x86 computers, the page size is 4KB.

Many applications are able to satisfy their memory needs by using GlobalAlloc. However, virtual memory functions provide some functionality not available ...

Get Microsoft Windows 2000 API SuperBible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.