IMallocSpy::PostGetSize (Compact 2013)
3/26/2014
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, |
Library |
ole32.lib |
See Also
Reference
IMallocSpy
CoRegisterMallocSpy
CoRevokeMallocSpy
IMalloc::GetSize
IMallocSpy::PreGetSize