IMallocSpy::PostDidAlloc (Windows Embedded CE 6.0)
1/6/2010
This method is called just after invoking the IMalloc::DidAlloc method.
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 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
Header | objidl.h, objidl.idl |
Library | ole32.lib |
Windows Embedded CE | Windows CE 3.0 and later |
See Also
Reference
IMallocSpy
CoRegisterMallocSpy
CoRevokeMallocSpy
IMalloc::DidAlloc
IMallocSpy::PreDidAlloc