Compartir a través de


IMallocSpy::PostRealloc (Compact 2013)

3/26/2014

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

See Also

Reference

IMallocSpy
CoRegisterMallocSpy
CoRevokeMallocSpy
IMalloc::Realloc
IMallocSpy::PreRealloc