Partager via


IMallocSpy::PostFree

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

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 Value

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

Header objidl.h, objidl.idl
Library ole32.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

CoRegisterMallocSpy
CoRevokeMallocSpy
IMallocSpy
IMalloc::Free
IMallocSpy::PreFree