Partager via


IMallocSpy::PostRealloc

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method is called after invoking the IMalloc::Realloc method.

Syntax

void* PostRealloc(
  void* pActual, 
  BOOL fSpyed 
);

Parameters

  • pActual
    [in] Pointer to the memory block reallocated by IMalloc::Realloc.
  • fSpyed
    [in] If TRUE, the original memory allocation was done while the spy was active, otherwise FALSE.

Return Value

A pointer to the beginning of the memory block actually allocated. This pointer is also returned to the caller of IMalloc::Realloc.

If debug information is written at the front of the caller's allocation, it should be a forward offset from pActual.

The value should be the same as pActual if debug information is appended or if no debug information is attached.

Remarks

If memory is successfully reallocated while the spy is active, fSpyed will be TRUE in subsequent calls to IMallocSpy methods that track the reallocated memory, even if fSpyed was previously FALSE.

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::Realloc
IMallocSpy::PreRealloc