HeapDestroy

This function destroys the specified heap object.

BOOL HeapDestroy(
  HANDLE hHeap 
);

Parameters

  • hHeap
    [in] Handle to the heap to be destroyed. This parameter should be a heap handle returned by the HeapCreate function. Do not use the handle to the process heap returned by the GetProcessHeap function.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

Processes can call HeapDestroy without first calling the HeapFree function to free memory allocated from the heap.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

GetProcessHeap | HeapAlloc | HeapCreate | HeapFree | HeapReAlloc | HeapSize

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.