This method is called just after invoking the IMalloc::DidAlloc method.
int PostDidAlloc( void* pRequest, BOOL fSpyed, int fActual );
- [in] Pointer specified in the original call to IMalloc::DidAlloc.
- [in] TRUE if the allocation was done while this spy was active, otherwise FALSE.
- [in] Actual value returned by IMalloc::DidAlloc.
The value returned to the caller of IMalloc::DidAlloc.
When a spy object implementing the IMallocSpy interface is registered with the CoRegisterMallocSpy function, 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 fActual is a Boolean that indicates whether this value was actually passed to IMalloc::DidAlloc. If not, it would indicate that IMallocSpy::PreDidAlloc 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.
To determine whether the platform supports this interface, see Determining Supported COM APIs.
OS Versions: Windows CE 3.0 and later.
Header: Objidl.h, Objidl.idl.
Link Library: Ole32.lib
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.