IMallocSpy interface (objidl.h)

Enables application developers to monitor (spy on) memory allocation, detect memory leaks, and simulate memory failure in calls to IMalloc methods.

Inheritance

The IMallocSpy interface inherits from the IUnknown interface. IMallocSpy also has these types of members:

Methods

The IMallocSpy interface has these methods.

 
IMallocSpy::PostAlloc

Performs operations required after calling IMalloc::Alloc.
IMallocSpy::PostDidAlloc

Performs operations required after calling IMalloc::DidAlloc.
IMallocSpy::PostFree

Performs operations required after calling IMalloc::Free.
IMallocSpy::PostGetSize

Performs operations required after calling IMalloc::GetSize.
IMallocSpy::PostHeapMinimize

Performs operations required after calling IMalloc::HeapMinimize.
IMallocSpy::PostRealloc

Performs operations required after calling IMalloc::Realloc.
IMallocSpy::PreAlloc

Performs operations required before calling IMalloc::Alloc.
IMallocSpy::PreDidAlloc

Performs operations required before calling IMalloc::DidAlloc.
IMallocSpy::PreFree

Performs operations required before calling IMalloc::Free. This method ensures that the pointer passed to Free points to the beginning of the actual allocation.
IMallocSpy::PreGetSize

Performs operations required before calling IMalloc::GetSize.
IMallocSpy::PreHeapMinimize

Performs operations required before calling IMalloc::HeapMinimize.
IMallocSpy::PreRealloc

Performs operations required before calling IMalloc::Realloc.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objidl.h

See also

CoGetMalloc

CoRegisterMallocSpy

CoRevokeMallocSpy

IMalloc