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

# AllocatePages (XBOX One 系列)

> AllocatePages (XBOX One 系列) 的參考，這是 xgmemory_NR Direct3D 12 圖形 API 中的方法。在 XBOX 上保留或未使用；如需詳細資料，請參閱備註。

# XGFreeList::AllocatePages 方法 (XBOX One 系列)

請勿使用；僅供內部使用。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
bool AllocatePages(
         USHORT *pPageIndices,
         UINT32 PageCount
)  
```

<a id="ID4EG" />

### 參數

*pPageIndices*   \
類型：USHORT\*

請勿使用；僅供內部使用。

*PageCount*   \
類型：UINT32

請勿使用；僅供內部使用。

<a id="ID4EP" />

### 傳回值

類型：bool

請勿使用；僅供內部使用。

<a id="requirements" />

## 需求

**標頭:** xgmemory.h

<a id="ID4ECB" />

**支援的平台:** XBOX One 系列

## 另請參閱

[XGFreeList](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGFreeList/xgfreelist)


## Related topics

- [game_chat_allocate_memory_callback](/zh-TW/reference/chat/gamechat2/functions/game_chat_allocate_memory_callback.md)
- [AcpHalAllocateShapeContexts](/zh-TW/reference/audio/acphal/functions/acphalallocateshapecontexts.md)
- [XMemMapPhysicalPages](/zh-TW/reference/system/xmem/functions/xmemmapphysicalpages.md)
- [XMemFreePhysicalPages](/zh-TW/reference/system/xmem/functions/xmemfreephysicalpages.md)
- [XStoreShowProductPageUIResult](/zh-TW/reference/system/xstore/functions/xstoreshowproductpageuiresult.md)
