次の方法で共有


HeapDestroy (Compact 2013)

3/28/2014

This function destroys the specified heap object.

Syntax

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 Value

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

Header

winbase.h

Library

coredll.lib

See Also

Reference

Memory Management Functions
GetProcessHeap
HeapAlloc
HeapCreate
HeapFree
HeapReAlloc
HeapSize