IMallocSpy::PostRealloc method (objidl.h)

Performs operations required after calling IMalloc::Realloc.

Syntax

void * PostRealloc(
  [in] void *pActual,
  [in] BOOL fSpyed
);

Parameters

[in] pActual

The pointer specified in the call to Realloc.

[in] fSpyed

Indicates whether the block of memory was allocated while the current spy was active.

Return value

The method returns a pointer to the beginning of the 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.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objidl.h

See also

IMalloc::Realloc

IMallocSpy

IMallocSpy::PreRealloc