IMalloc interface (objidlbase.h)
Allocates, frees, and manages memory.
Inheritance
The IMalloc interface inherits from the IUnknown interface. IMalloc also has these types of members:
Methods
The IMalloc interface has these methods.
IMalloc::DidAlloc The IMalloc::DidAlloc (objidlbase.h) method determines whether this allocator was used to allocate the specified block of memory. |
IMalloc::Free The IMalloc::Free (objidlbase.h) method frees a previously allocated block of memory. |
IMalloc::GetSize The IMalloc::GetSize (objidlbase.h) method retrieves the size of a previously allocated block of memory. |
IMalloc::HeapMinimize The IMalloc::HeapMinimize (objidlbase.h) method minimizes the heap by releasing unused memory to the operating system. |
IMalloc::Realloc The IMalloc::Realloc (objidlbase.h) method changes the size of a previously allocated block of memory. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | objidlbase.h (include ObjIdl.h) |