GetProcessHeap

GetProcessHeap obtains a handle to the heap of the calling process. This handle can then be used in calls to HeapAlloc, HeapReAlloc, HeapFree, and HeapSize.

Syntax

Copy
HANDLE GetProcessHeap(VOID);

Parameters

This function has no parameters.

Return Value

If the function succeeds, it returns a handle to the calling process's heap. If the function fails, it returns NULL.

Remarks

GetProcessHeap allows Process processes to allocate memory from the process heap.

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

windows.h rtkrnl.lib

See Also: