IMallocSpy::PostGetSize method (objidl.h)

Performs operations required after calling IMalloc::GetSize.

Syntax

SIZE_T PostGetSize(
  [in] SIZE_T cbActual,
  [in] BOOL   fSpyed
);

Parameters

[in] cbActual

The number of bytes in the allocation, as returned by GetSize.

[in] fSpyed

Indicates whether the block of memory was allocated while the current spy was active.

Return value

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

Remarks

The size determined by GetSize is the value returned by the HeapSize function. This is the size originally requested. For example, a memory allocation request of 27 bytes returns an allocation of 32 bytes and GetSize returns 27.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objidl.h

See also

IMalloc::GetSize

IMallocSpy

IMallocSpy::PreGetSize