> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XMemGetWin32HeapStatistics

> XMemGetWin32HeapStatistics

# XMemGetWin32HeapStatistics

指定されたヒープの統計情報を取得します。

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
BOOL XMemGetWin32HeapStatistics(
    _In_ HANDLE Heap,
    _Out_ PWIN32_HEAP_STATISTICS Statistics
    );
```

<a id="parametersSection" />

### Parameters

*Heap*   \_In\_\
型: HANDLE

統計情報を取得するヒープのハンドル

*Statistics*   \_Out\_\
型: PWIN32\_HEAP\_STATISTICS

統計情報を格納する [WIN32\_HEAP\_STATISTICS](/reference/system/xmem/structs/win32_heap_statistics) 構造体へのポインター。

<a id="retvalSection" />

### Return value

型: BOOL

[WIN32\_HEAP\_STATISTICS](/reference/system/xmem/structs/win32_heap_statistics) 構造体を設定できた場合は `TRUE` を返します。それ以外の場合は `FALSE`。

<a id="remarksSection" />

## Remarks

この関数は、win32 ヒープのコミット サイズなどの統計情報を返します。返されるコミット サイズは、win32 ヒープが消費する合計メモリの推定値です。

<a id="requirementsSection" />

## Requirements

**ヘッダー:** xmem.h

**ライブラリ:** xmem.lib

**サポートされているプラットフォーム:** XBOX One ファミリー本体および XBOX Series 本体

<a id="seealsoSection" />

## See also

[Diagnostics and memory tracking](/build/console-features/memory/system-memory-diagnostics)\
[WIN32\_HEAP\_STATISTICS](/reference/system/xmem/structs/win32_heap_statistics)\
[XMem](/reference/system/xmem/xmem_members)
