HeapFree
HeapFree frees a memory block allocated from a heap by HeapAlloc or HeapReAlloc.
Syntax
BOOL HeapFree(
HANDLE hHeap,
DWORD Flags,
LPVOID lpMem
);
Parameters
hHeap
The heap whose memory block the function frees. This parameter is the handle returned by GetProcessHeap.
Flags
Ignored.
lpMem
A pointer to the memory block to free. This pointer is returned by HeapAlloc or HeapReAlloc.
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE.
To get extended error information, call GetLastError.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
windows.h | rtkrnl.lib |
See Also: