This topic describes the memory management functions:
· Data Execution Prevention Functions
The following functions are used in memory management.
Function | Description |
Copies a block of memory from one location to another. | |
Creates a memory resource notification object. | |
Fills a block of memory with a specified value. | |
Retrieves the minimum size of a large page. | |
Retrieves the current size limits for the working set of the system cache. | |
Retrieves the addresses of the pages that have been written to in a region of virtual memory. | |
Obtains information about the system's current usage of both physical and virtual memory. | |
Obtains information about the system's current usage of both physical and virtual memory. | |
Moves a block of memory from one location to another. | |
Retrieves the state of the specified memory resource object. | |
Resets the write-tracking state for a region of virtual memory. | |
Fills a block of memory with zeros. | |
Limits the size of the working set for the file system cache. | |
Fills a block of memory with zeros. |
Data Execution Prevention Functions
The following functions are used with Data Execution Prevention (DEP).
Function | Description |
Retrieves DEP settings for a process. | |
Retrieves DEP settings for the system. | |
Changes DEP settings for a process. |
The following functions are used in file mapping.
Function | Description |
Creates or opens a named or unnamed file mapping object for a specified file. | |
Creates or opens a named or unnamed file mapping object for a specified file, and specifies the NUMA node for the physical memory. | |
Writes to the disk a byte range within a mapped view of a file. | |
GetMappedFileName | Checks whether the specified address is within a memory-mapped file in the address space of the specified process. If so, the function returns the name of the memory-mapped file. |
Maps a view of a file mapping into the address space of a calling process. | |
Maps a view of a file mapping into the address space of a calling process. A caller can optionally specify a suggested memory address for the view. | |
Maps a view of a file mapping into the address space of a calling process, and specifies the NUMA node for the physical memory. | |
Opens a named file mapping object. | |
Unmaps a mapped view of a file from the calling process's address space. |
The following are the AWE functions.
Function | Description |
Allocates physical memory pages to be mapped and unmapped within any AWE region of the process. | |
Frees physical memory pages previously allocated with AllocateUserPhysicalPages. | |
Maps previously allocated physical memory pages at the specified address within an AWE region. | |
Maps previously allocated physical memory pages at the specified address within an AWE region. |
The following are the heap functions.
Function | Description |
Obtains a handle to the heap of the calling process. | |
Obtains handles to all of the heaps that are valid for the calling process. | |
Allocates a block of memory from a heap. | |
Attempts to compact a specified heap. | |
Creates a heap object. | |
Destroys the specified heap object. | |
Frees a memory block allocated from a heap. | |
Attempts to acquire the lock associated with a specified heap. | |
Retrieves information about the specified heap. | |
Reallocates a block of memory from a heap. | |
Sets heap information for the specified heap. | |
Retrieves the size of a memory block allocated from a heap. | |
Releases ownership of the lock associated with a specified heap. | |
Attempts to validate a specified heap. | |
Enumerates the memory blocks in a specified heap. |
The following are the virtual memory functions.
Function | Description |
Reserves or commits a region of pages in the virtual address space of the calling process. | |
Reserves or commits a region of pages in the virtual address space of the specified process. | |
Reserves or commits a region of memory within the virtual address space of the specified process, and specifies the NUMA node for the physical memory. | |
Releases or decommits a region of pages within the virtual address space of the calling process. | |
Releases or decommits a region of memory within the virtual address space of a specified process. | |
Locks the specified region of the process's virtual address space into physical memory. | |
Changes the access protection on a region of committed pages in the virtual address space of the calling process. | |
Changes the access protection on a region of committed pages in the virtual address space of the calling process. | |
Provides information about a range of pages in the virtual address space of the calling process. | |
Provides information about a range of pages in the virtual address space of the calling process. | |
Unlocks a specified range of pages in the virtual address space of a process. |
The following are the global and local functions. These functions are slower than other memory management functions and do not provide as many features. Therefore, new applications should use the heap functions. However, the global functions are still used with DDE and the clipboard functions.
Function | Description |
Allocates the specified number of bytes from the heap. | |
Discards the specified global memory block. | |
Returns information about the specified global memory object. | |
Frees the specified global memory object. | |
Retrieves the handle associated with the specified pointer to a global memory block. | |
Locks a global memory object and returns a pointer to the first byte of the object's memory block. | |
Changes the size or attributes of a specified global memory object. | |
Retrieves the current size of the specified global memory object. | |
Decrements the lock count associated with a memory object. | |
Allocates the specified number of bytes from the heap. | |
Discards the specified local memory object. | |
Returns information about the specified local memory object. | |
Frees the specified local memory object. | |
Retrieves the handle associated with the specified pointer to a local memory object. | |
Locks a local memory object and returns a pointer to the first byte of the object's memory block. | |
Changes the size or the attributes of a specified local memory object. | |
Returns the current size of the specified local memory object. | |
Decrements the lock count associated with a memory object. |
The following functions are provided only for compatibility with 16-bit versions of Windows:
Send comments about this topic to Microsoft
Build date: 8/15/2007