IMallocSpy::PostRealloc method

Performs operations required after calling IMalloc::Realloc.

Syntax


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

Parameters

pActual [in]

The pointer specified in the call to Realloc.

fSpyed [in]

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IMallocSpy is defined as 0000001d-0000-0000-C000-000000000046

See also

IMalloc::Realloc
IMallocSpy
IMallocSpy::PreRealloc

 

 

Show: