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

# XMemGetTitleHeap

> XMemGetTitleHeap

# XMemGetTitleHeap

傳回指向遊戲堆積的指標。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
PVOID XMemGetTitleHeap(  
)  
```

<a id="parametersSection" />

### 參數

無。

<a id="retvalSection" />

### 傳回值

類型：PVOID

如果成功，則為指向遊戲堆積的指標；如果未配置任何堆積記憶體，則為 `NULL`。

<a id="remarksSection" />

## 備註

此函式會傳回先前透過呼叫 `HeapAlloc` 從遊戲分割區配置的遊戲堆積指標。如果您的遊戲尚未從遊戲堆積配置記憶體，此函式會傳回 `NULL`。如需遊戲分割區和遊戲堆積記憶體的詳細資訊，請參閱[記憶體](/zh-TW/build/console-features/memory/system-memory-overview)。

<a id="requirementsSection" />

## 需求

**標頭：** xmem.h

**程式庫：** xmem.lib

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[診斷與記憶體追蹤](/zh-TW/build/console-features/memory/system-memory-diagnostics)\
[XMem](/zh-TW/reference/system/xmem/xmem_members)


## Related topics

- [XMemGetTitleHeap](/reference/system/xmem/functions/xmemgettitleheap.md)
- [XMemGetWin32HeapName](/reference/system/xmem/functions/xmemgetwin32heapname.md)
- [XMemGetWin32HeapStatistics](/reference/system/xmem/functions/xmemgetwin32heapstatistics.md)
