Share via


IMallocSpy::PostFree

This method is called just after invoking the IMalloc::Free method.

void PostFree(
  BOOL fSpyed 
);

Parameters

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

Return Values

None.

Remarks

When a spy object implementing the IMallocSpy interface is registered with the CoRegisterMallocSpy function, 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.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Objidl.h, Objidl.idl.
Link Library: Ole32.lib

See Also

CoRegisterMallocSpy | CoRevokeMallocSpy | IMallocSpy | IMalloc::Free | IMallocSpy::PreFree

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.