win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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