IMallocSpy::PostDidAlloc method (objidl.h)

Performs operations required after calling IMalloc::DidAlloc.

Syntax

int PostDidAlloc(
  [in] void *pRequest,
  [in] BOOL fSpyed,
  [in] int  fActual
);

Parameters

[in] pRequest

The pointer specified in the call to DidAlloc.

[in] fSpyed

Indicates whether the allocation was done while this spy was active.

[in] fActual

The value returned by DidAlloc.

Return value

The value returned to the caller of DidAlloc.

Remarks

When a spy object implementing IMallocSpy is registered using the CoRegisterMallocSpy function, COM calls this method immediately after any call to 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 DidAlloc, is passed to PostDidAlloc. In addition, the parameter fActual is a Boolean value that indicates whether this value was actually passed to DidAlloc. If not, it would indicate that IMallocSpy::PreDidAlloc was implemented to alter this pointer for some debugging purpose.

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::DidAlloc

IMallocSpy

IMallocSpy::PreDidAlloc