> ## 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`。有关游戏分区和游戏堆内存的更多信息，请参阅[内存](/build/console-features/memory/system-memory-overview)。

<a id="requirementsSection" />

## 要求

**标头：** xmem.h

**库：** xmem.lib

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

<a id="seealsoSection" />

## 请参阅

[诊断与内存跟踪](/build/console-features/memory/system-memory-diagnostics)\
[XMem](/reference/system/xmem/xmem_members)


## Related topics

- [XMemGetWin32HeapName](/zh-CN/reference/system/xmem/functions/xmemgetwin32heapname.md)
- [XMemGetWin32HeapStatistics](/zh-CN/reference/system/xmem/functions/xmemgetwin32heapstatistics.md)
- [XMemSetWin32HeapName](/zh-CN/reference/system/xmem/functions/xmemsetwin32heapname.md)
- [WIN32_HEAP_STATISTICS](/zh-CN/reference/system/xmem/structs/win32_heap_statistics.md)
- [XMemCreateWin32Heap](/zh-CN/reference/system/xmem/functions/xmemcreatewin32heap.md)
