IMallocSpy::PostDidAlloc (Windows CE 5.0)
This method is called just after invoking the IMalloc::DidAlloc method.
int PostDidAlloc(void* pRequest,BOOLfSpyed,intfActual);
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 Values
The value returned to the caller of IMalloc::DidAlloc.
Remarks
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.
Requirements
OS Versions: Windows CE 3.0 and later.
Header: Objidl.h, Objidl.idl.
Link Library: Ole32.lib
See Also
CoRegisterMallocSpy | CoRevokeMallocSpy | IMallocSpy | IMalloc::DidAlloc | IMallocSpy::PreDidAlloc
Send Feedback on this topic to the authors