IMallocSpy::PostDidAlloc  D.ZL3R

Called just after invoking IMalloc::DidAlloc4NPHFW.

int PostDidAlloc(

    void * pRequest,

//Original pointer passed to IMalloc::DidAlloc

    BOOL fSpyed,

//Whether the allocation was done while this spy was active

    int fActual

//Whether pRequest was actual value used in IMalloc call

   );

 

 

Parameters

pRequest

[in] Pointer specified in the original call to IMalloc::DidAlloc4NPHFW.

fSpyed

[in] TRUE if the allocation was done while this spy was active.

fActual

[in] Actual value returned by IMalloc::DidAlloc4NPHFW.

 

Return Value

The value returned to the caller of IMalloc::DidAlloc4NPHFW.

Remarks

When a spy object implementing IMallocSpy is registered with CoRegisterMallocSpy, OLE calls this method immediately after any call to IMalloc::DidAlloc. This method is included for completeness and consistency   it is not anticipated that developers will implement significant functionality in this method.

For convenience, pRequest, the original pointer passed in the call to IMalloc::DidAlloc, is passed to PostDidAlloc. In addition, the parameter fActual is a boolean that indicates whether this value was actually passed to IMalloc::DidAlloc. If not, it would indicate that IMallocSpy::PreDidAlloc1F9V9XU was implemented to alter this pointer for some debugging purpose.

The fSpyed parameter is a boolean that indicates whether the allocation was done while the current spy object was active.

See Also

IMalloc::DidAlloc, IMallocSpy::PreDidAlloc, CoRegisterMallocSpy, CoRevokeMallocSpy