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) |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for