win12.hlp (Table of Contents; Topic list)
WinDestroyHeap (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINHEAP
 
HHEAP WinDestroyHeap(hHeap)
HHEAP hHeap;    /* handle of the heap */
 
The WinDestroyHeap function destroys a heap created by the WinCreateHeap
function. If the WinCreateHeap function allocated a segment, the
WinDestroyHeap will free that segment.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hHeap      Identifies the heap to be destroyed. This handle must have been
           created by a previous call to the WinCreateHeap function.
 
Return Value
 
The return value is zero if the function is successful. Otherwise, it is
nonzero, indicating that an error occurred.
 
See Also
 
WinCreateHeap, WinDestroyAccelTable, WinDestroyAtomTable, WinDestroyCursor,
WinDestroyMsgQueue, WinDestroyPointer, WinDestroyWindow