BOOL HeapFree(hHeap, lpMem) | |||||
HANDLE hHeap; | /* identifies the heap | */ | |||
LPSTR lpMem; | /* address of the memory to free | */ |
The HeapFree function frees a heap memory block allocated by the HeapAlloc function.
hHeap
Identifies the heap. This handle is returned by the HeapCreate function.
lpMem
Points to the memory block to free. This pointer is returned by the HeapAlloc function.
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
HeapAlloc, HeapCreate