Called by OLE just prior to invoking IMalloc::DidAlloc.
void * PreDidAlloc(
| 
 void * pRequest,  | 
 //Pointer the caller is passing to IMalloc::DidAlloc  | 
| 
 BOOL fSpyed  | 
 //Whether pRequest was allocated while this spy was active  | 
| 
 );  | 
Parameters
Return Value
The pointer for which allocation status is determined. This pointer is passed to PostDidAlloc as the fActual parameter.
Remarks
When a spy object implementing IMallocSpy is registered with CoRegisterMallocSpy, OLE calls this method immediately before any call to IMalloc::DidAlloc. This method is included for completeness and consistency &emdash; it is not anticipated that developers will implement significant functionality in this method.
See Also
IMalloc::DidAlloc, IMallocSpy::PostDidAlloc, CoRegisterMallocSpy, CoRevokeMallocSpy