IMalloc interface (objidl.h)
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.
Allocates a block of memory. (IMalloc.Alloc)
The IMalloc::DidAlloc method (objidl.h) determines whether this allocator was used to allocate the specified block of memory.
The IMalloc::Free method (objidl.h) frees a previously allocated block of memory.
The IMalloc::GetSize method (objidl.h) retrieves the size of a previously allocated block of memory.
The IMalloc::HeapMinimize method (objidl.h) minimizes the heap by releasing unused memory to the operating system, coalescing adjacent free blocks, and committing free pages.
The IMalloc::Realloc method (objidl.h) 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||objidl.h (include ObjIdl.h)|