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

# InitializeWithPageCounts (família XBOX One)

> Inicializa o **XGMemoryLayoutEngine** com contagens de páginas do sistema e contagens de páginas de ESRAM.

# Método XGMemoryLayoutEngine::InitializeWithPageCounts (família XBOX One)

Inicializa o **XGMemoryLayoutEngine** com contagens de páginas do sistema e contagens de páginas de ESRAM.

<a id="syntaxSection" />

## Sintaxe

```cpp theme={null}
HRESULT InitializeWithPageCounts(
         UINT32 SystemPageCount,
         UINT32 EsramPageCount,
         UINT32 EsramPageOffset
)  
```

<a id="ID4EJ" />

### Parâmetros

*SystemPageCount*\
Tipo: UINT32

O número de páginas do sistema.

*EsramPageCount*\
Tipo: UINT32

O número de páginas de ESRAM.

*EsramPageOffset*\
Tipo: UINT32

O deslocamento do início das páginas de ESRAM.

<a id="ID4ES" />

### Valor retornado

Tipo: HRESULT

S\_OK, E\_INVALIDARG ou E\_OUTOFMEMORY.

<a id="remarks" />

## Comentários

As páginas serão alocadas por este método e liberadas quando o mecanismo de layout de memória for liberado.

<a id="requirements" />

## Requisitos

**Cabeçalho:** xgmemory.h

<a id="ID4ERB" />

**Plataformas com suporte:** família XBOX One

## Confira também

[XGMemoryLayoutEngine](/pt-BR/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayoutEngine/xgmemorylayoutengine)


## Related topics

- [Diretório de tópicos NDA: links ativos do Microsoft Learn](/pt-BR/nda/nda-topic-directory.md)
- [chat_manager::initialize](/pt-BR/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md)
- [FFTInitializeUnityTable](/pt-BR/reference/audio/xdsp/functions/fftinitializeunitytable.md)
- [XGameStreamingInitialize](/pt-BR/reference/system/xgamestreaming/functions/xgamestreaminginitialize.md)
- [XGameRuntimeInitialize](/pt-BR/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize.md)
