Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Memory Management Functions

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

The following table shows the memory management functions with a description of the purpose of each.

Function Description

GetDllVersion

Obtains the major and minor version numbers of the system that the specified DLL expects to run on.

GetProcessHeap

Obtains a handle to the heap of the calling process.

GlobalMemoryStatus

Obtains information on the physical and virtual memory of the system.

HeapAlloc

Allocates a block of memory from a heap.

HeapCompact

Compact a specified heap by combining adjacent free blocks of memory and decommitting large free blocks of memory.

HeapCreate

Creates a heap object that is private to the calling process.

HeapDestroy

Destroys the specified heap object.

HeapFree

Frees a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function.

HeapReAlloc

Reallocates a block of memory from a heap.

HeapSize

Returns the size, in bytes, of a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function.

HeapValidate

Validates the specified heap. HeapValidate scans all the memory blocks in the heap and verifies that the heap control structures maintained by the heap manager are in a consistent state. The HeapValidate function can also be used to validate a single memory block within a specified heap without checking the validity of the entire heap.

IsBadCodePtr

Checks whether the calling process has read access to the memory at the specified address.

IsBadReadPtr

Checks whether the calling process has read access to the specified range of memory.

IsBadWritePtr

Checks whether the calling process has write access to the specified range of memory.

LocalAlloc

Allocates the specified number of bytes from the heap.

LocalFree

Frees the specified local memory object and invalidates its handle.

LocalReAlloc

Changes the size or the attributes of a specified local memory object.

LocalSize

Returns the current size, in bytes, of the specified local memory object.

SecureZeroMemory

Fills a block of memory with zeros.

VirtualAlloc

Reserves or commits a region of pages in the virtual address space of the calling process.

VirtualFree

Releases or decommits, or both, a region of pages within the virtual address space of the calling process.

VirtualProtect

This function changes the access protection on a region of committed pages in the virtual address space of the calling process.

VirtualQuery

This function provides information about a range of pages in the virtual address space of the calling process.

Community Additions

Show:
© 2014 Microsoft