HeapDestroy

  BOOL HeapDestroy(hHeap)    
  HANDLE hHeap; /* identifies the heap */

The HeapDestroy function destroys the specified heap.

Parameters

hHeap

Identifies the heap to be destroyed. This handle is returned by the HeapCreate function.

Return Value

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.

Comment

This function releases all allocated heap memory; applications are not required to explicitly free allocated memory (with the HeapFree function) before using the HeapDestroy function.

See Also

HeapAlloc, HeapCreate, HeapFree