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

# XMemGetWin32HeapStatistics

> XMemGetWin32HeapStatistics

# XMemGetWin32HeapStatistics

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

## Syntax

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

### Parameters

*Heap*   \_In\_\
型: HANDLE

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

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

統計情報を格納する [WIN32\_HEAP\_STATISTICS](https://docs.xbox.com/ja-jp/reference/system/xmem/structs/win32_heap_statistics.md) 構造体へのポインター。

### Return value

型: BOOL

[WIN32\_HEAP\_STATISTICS](https://docs.xbox.com/ja-jp/reference/system/xmem/structs/win32_heap_statistics.md) 構造体を設定できた場合は `TRUE` を返します。それ以外の場合は `FALSE`。

## Remarks

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

## Requirements

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

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

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

## See also

[Diagnostics and memory tracking](https://docs.xbox.com/ja-jp/build/console-features/memory/system-memory-diagnostics.md)\
[WIN32\_HEAP\_STATISTICS](https://docs.xbox.com/ja-jp/reference/system/xmem/structs/win32_heap_statistics.md)\
[XMem](https://docs.xbox.com/ja-jp/reference/system/xmem/xmem_members.md)


## Related topics

- [WIN32_HEAP_STATISTICS](https://docs.xbox.com/ja-jp/reference/system/xmem/structs/win32_heap_statistics.md)
- [XMemGetWin32HeapName](https://docs.xbox.com/ja-jp/reference/system/xmem/functions/xmemgetwin32heapname.md)
- [XMemCreateWin32Heap](https://docs.xbox.com/ja-jp/reference/system/xmem/functions/xmemcreatewin32heap.md)
- [XMemSetWin32HeapName](https://docs.xbox.com/ja-jp/reference/system/xmem/functions/xmemsetwin32heapname.md)
- [XMemSetWin32HeapTrackingHooks](https://docs.xbox.com/ja-jp/reference/system/xmem/functions/xmemsetwin32heaptrackinghooks.md)
