Compartir a través de


IMallocSpy::PostGetSize (Windows CE 5.0)

Send Feedback

This method is called just after invoking the IMalloc::GetSize method.

ULONG PostGetSize(ULONGcbActual,BOOLfSpyed);

Parameters

  • cbActual
    [in] Actual number of bytes in the allocation, as returned by IMalloc::GetSize.
  • fSpyed
    [in] TRUE if the allocation was done while a spy was active, otherwise FALSE.

Return Values

The same value returned by IMalloc::GetSize, which is the size of the allocated memory block in bytes.

Remarks

The size determined by IMalloc::GetSize is the value returned by the Win32 function HeapSize. Implementers of IMallocSpy::PostGetSize cannot assume that if cbActual is sizeof(debug_header), the value is the actual size of the user's allocation.

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 | HeapSize | IMalloc::GetSize | IMallocSpy::PreGetSize

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.