Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method is called just after invoking the IMalloc::DidAllocmethod.

Syntax

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

Parameters

pRequest

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

fSpyed

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

fActual

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

Return Value

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

Remarks

When a spy object implementing the IMallocSpyinterface is registered with the CoRegisterMallocSpyfunction, COM 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 IMallocSpy::PostDidAlloc.

In addition, the parameter fActualis a Boolean that indicates whether this value was actually passed to IMalloc::DidAlloc. If not, it would indicate that IMallocSpy::PreDidAllocwas implemented to alter this pointer for some debugging purpose.

The fSpyedparameter is a Boolean that indicates whether the allocation was done while the current spy object was active.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

Header objidl.h, objidl.idl
Library ole32.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also