Compartir a través de


IMallocSpy::PostGetSize

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

ULONG PostGetSize(
  ULONG cbActual, 
  BOOL fSpyed 
);

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 Value

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

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

See Also

Reference

CoRegisterMallocSpy
CoRevokeMallocSpy
IMalloc::GetSize
IMallocSpy::PreGetSize

Other Resources

HeapSize