Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This method is called by COM just prior to invoking the IMalloc::DidAllocmethod.
Syntax
void* PreDidAlloc( void* pRequest, BOOL fSpyed ); |
Parameters
- pRequest
-
[in] Pointer the caller is passing to IMalloc::DidAlloc.
- fSpyed
-
[in] TRUE if the allocation was done while this spy was active, otherwise FALSE.
Return Value
The pointer for which allocation status is determined. This pointer is passed to the IMallocSpy::PostDidAllocmethod as the fActualparameter.
Remarks
When a spy object implementing the IMallocSpyinterface is registered with the CoRegisterMallocSpyfunction, 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.
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 |
Windows Mobile | Windows Mobile Version 5.0 and later |