Compartir a través de


IMallocSpy::PreDidAlloc (Windows CE 5.0)

Send Feedback

This method is called by COM just prior to invoking the IMalloc::DidAlloc method.

void* PreDidAlloc(void* pRequest,BOOLfSpyed);

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 Values

The pointer for which allocation status is determined. This pointer is passed to the IMallocSpy::PostDidAlloc method as the fActual parameter.

Remarks

When a spy object implementing the IMallocSpy interface 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.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Objidl.h, Objidl.idl.
Link Library: Ole32.lib

See Also

CoRegisterMallocSpy | CoRevokeMallocSpy | IMallocSpy | IMalloc::DidAlloc | IMallocSpy::PostDidAlloc

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.