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

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

<a id="syntaxSection" />

## Sintaxe

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

<a id="parametersSection" />

### 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](/pt-BR/reference/system/xmem/structs/win32_heap_statistics) que conterá as estatísticas.

<a id="retvalSection" />

### Valor retornado

Tipo: BOOL

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

<a id="remarksSection" />

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

<a id="requirementsSection" />

## Requisitos

**Cabeçalho:** xmem.h

**Biblioteca:** xmem.lib

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

<a id="seealsoSection" />

## Confira também

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


## Related topics

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