IMalloc::HeapMinimize

This method minimizes the heap as much as possible by releasing unused memory to the operating system, coalescing adjacent free blocks and committing free pages.

void HeapMinimize();

Parameters

None.

Return Values

None.

Remarks

Calling IMalloc::HeapMinimize is useful when an application has been running for some time and the heap may be fragmented.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Objidl.h, Objidl.idl.
Link Library: Ole32.lib

See Also

IMalloc::Alloc | IMalloc::Free | IMalloc::Realloc

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.