Allocates, frees, and manages memory.
The IMalloc interface inherits from the IUnknown interface. IMalloc also has these types of members:
The IMalloc interface has these methods.
|IMalloc::DidAlloc||Determines whether this allocator was used to allocate the specified block of memory.|
|IMalloc::Free||Frees a previously allocated block of memory.|
|IMalloc::GetSize||Retrieves the size of a previously allocated block of memory.|
|IMalloc::HeapMinimize||Minimizes the heap as much as possible by releasing unused memory to the operating system, coalescing adjacent free blocks, and committing free pages.|
|IMalloc::Realloc||Changes the size of a previously allocated block of memory.|
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||objidlbase.h (include ObjIdl.h)|