IMallocSpy::PostDidAlloc
Called just
after invoking IMalloc::DidAlloc
int PostDidAlloc(
void * pRequest, |
//Original pointer passed to IMalloc::DidAlloc |
BOOL fSpyed, |
//Whether the allocation was done while this spy was
active |
int fActual |
//Whether pRequest was actual value used in
IMalloc call |
); |
|
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.
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 IMallocSpy is registered with CoRegisterMallocSpy,
OLE 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 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
The fSpyed
parameter is a boolean that indicates whether the allocation was done while the
current spy object was active.
See Also