> ## 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

Obtém as estatísticas de um determinado heap.

## Sintaxe

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

### Parâmetros

*Heap*   \_In\_\
Tipo: HANDLE

O identificador do heap cujas estatísticas serão recuperadas

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

Um ponteiro para a estrutura [WIN32\_HEAP\_STATISTICS](https://docs.xbox.com/pt-BR/reference/system/xmem/structs/win32_heap_statistics.md) que conterá as estatísticas.

### Valor retornado

Tipo: BOOL

Retorna `TRUE` se a estrutura [WIN32\_HEAP\_STATISTICS](https://docs.xbox.com/pt-BR/reference/system/xmem/structs/win32_heap_statistics.md) puder ser preenchida; caso contrário, `FALSE`.

## Comentários

Essa função retorna estatísticas, como o tamanho confirmado em um heap win32.  O tamanho confirmado retornado é uma estimativa da memória total consumida por um heap win32.

## Requisitos

**Cabeçalho:** xmem.h

**Biblioteca:** xmem.lib

**Plataformas com suporte:** consoles da família XBOX One e consoles XBOX Series

## Confira também

[Diagnóstico e rastreamento de memória](https://docs.xbox.com/pt-BR/build/console-features/memory/system-memory-diagnostics.md)\
[WIN32\_HEAP\_STATISTICS](https://docs.xbox.com/pt-BR/reference/system/xmem/structs/win32_heap_statistics.md)\
[XMem](https://docs.xbox.com/pt-BR/reference/system/xmem/xmem_members.md)


## Related topics

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