IMallocSpy::PostDidAlloc method

Performs operations required after calling IMalloc::DidAlloc.

Syntax


int PostDidAlloc(
  [invoid *pRequest,
  [in] BOOL fSpyed,
  [inint  fActual
);

Parameters

pRequest [in]

The pointer specified in the call to DidAlloc.

fSpyed [in]

Indicates whether the allocation was done while this spy was active.

fActual [in]

The value returned by DidAlloc.

Return value

The value returned to the caller of DidAlloc.

Remarks

When a spy object implementing IMallocSpy is registered using the CoRegisterMallocSpy function, COM calls this method immediately after any call to DidAlloc. This method is included for completeness and consistency—it is not anticipated that developers will implement significant functionality in this method.

For convenience, pRequest, the original pointer passed in the call to DidAlloc, is passed to PostDidAlloc. In addition, the parameter fActual is a Boolean value that indicates whether this value was actually passed to DidAlloc. If not, it would indicate that IMallocSpy::PreDidAlloc was implemented to alter this pointer for some debugging purpose.

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::PreDidAlloc

 

 

Show: