IMallocSpy::PostRealloc

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

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 Values

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

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

See Also

CoRegisterMallocSpy | CoRevokeMallocSpy | IMallocSpy | IMalloc::Realloc | IMallocSpy::PreRealloc

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.