Skip to main content

XMemGetWin32HeapStatistics

Gets the statistics for a given heap.

Syntax

Parameters

Heap   _In_
Type: HANDLE
The heap handle to retrieve statistics for Statistics   _Out_
Type: PWIN32_HEAP_STATISTICS
A pointer to the WIN32_HEAP_STATISTICS structure to contain the statistics.

Return value

Type: BOOL Returns TRUE if the WIN32_HEAP_STATISTICS structure could be populated; otherwise, FALSE.

Remarks

This function returns statistics, such as the commit size in a win32 heap. The returned commit size is an estimation of the total memory consumed by a win32 heap.

Requirements

Header: xmem.h Library: xmem.lib Supported platforms: XBOX One family consoles and XBOX Series consoles

See also

Diagnostics and memory tracking
WIN32_HEAP_STATISTICS
XMem
Last modified on August 20, 2026