Poznámka:
Přístup k této stránce vyžaduje autorizaci. Můžete se zkusit přihlásit nebo změnit adresáře.
Přístup k této stránce vyžaduje autorizaci. Můžete zkusit změnit adresáře.
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::Alloc Allocates a block of memory. (IMalloc.Alloc) |
| IMalloc::DidAlloc The IMalloc::DidAlloc method (objidl.h) determines whether this allocator was used to allocate the specified block of memory. |
| IMalloc::Free The IMalloc::Free method (objidl.h) frees a previously allocated block of memory. |
| IMalloc::GetSize The IMalloc::GetSize method (objidl.h) retrieves the size of a previously allocated block of memory. |
| IMalloc::HeapMinimize 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. |
| IMalloc::Realloc The IMalloc::Realloc method (objidl.h) 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 | objidl.h (include ObjIdl.h) |