IMallocSpy::PreDidAlloc method
Performs operations required before calling IMalloc::DidAlloc.
Syntax
void* PreDidAlloc( [in] void *pRequest, [in] BOOL fSpyed );
Parameters
- pRequest [in]
-
The pointer specified in the call to DidAlloc.
- fSpyed [in]
-
Indicates whether the allocation was done while this spy was active.
Return value
The value passed to DidAlloc as the fActual parameter.
Remarks
When a spy object implementing IMallocSpy is registered with the CoRegisterMallocSpy function, COM calls this method immediately before 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.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IMallocSpy is defined as 0000001d-0000-0000-C000-000000000046 |
See also