Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IMallocSpy is defined as 0000001d-0000-0000-C000-000000000046

See also

IMalloc::DidAlloc
IMallocSpy
IMallocSpy::PostDidAlloc

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.