IMallocSpy::PostFree

Called just after invoking IMalloc::Free.

void PostFree(
  BOOL fSpyed  //Whether the memory block to be freed was allocated 
               //while the spy is active
);
 

Parameter

fSpyed
[in] TRUE if the memory block to be freed was allocated while the current spy was active, otherwise FALSE.

Remarks

When a spy object implementing IMallocSpy is registered with CoRegisterMallocSpy, COM calls this method immediately after any call to IMalloc::Free. This method is included for completeness and consistency — it is not anticipated that developers will implement significant functionality in this method. On return, the fSpyed parameter simply indicates whether the memory was freed while the current spy was active.

QuickInfo

  Windows NT: Use version 4.0 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in objidl.h.

See Also

IMalloc::Free, IMallocSpy::PreFree, CoRegisterMallocSpy, CoRevokeMallocSpy