Share via


IMalloc::HeapMinimize

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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.

Syntax

void HeapMinimize();

Parameters

None.

Return Value

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

Header objidl.h, objidl.idl
Library ole32.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

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