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
HANDLE GetProcessHeap(VOID);
Parameters
This function has no parameters.
Return Value
A handle to the calling process's heap if the function succeeds, NULL if the function fails
Remarks
GetProcessHeap allows RTSS processes to allocate memory from the process heap. The following example shows how to use this call with HeapAlloc.
HeapAlloc(GetProcessHeap(), 0, dwBytes);
Requirements
Minimum Supported Version | RTX64 2013 |
Header | windows.h |
Library | Rtx_Rtss.lib |
See Also: