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 Values

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

Library Rtx_Rtss.lib

See Also:

HeapAlloc

HeapFree

HeapReAlloc

HeapSize

IntervalZero.com | Support | Give Feedback