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

Returns a pointer to the title heap.

<a id="syntaxSection" />

## Syntax

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

<a id="parametersSection" />

### Parameters

None.

<a id="retvalSection" />

### Return value

Type: PVOID

A pointer to the title heap, if successful; otherwise, `NULL` if no heap memory is allocated.

<a id="remarksSection" />

## Remarks

This function returns the pointer to the title heap previously allocated from the title partition by calling `HeapAlloc`. If your title hasn't allocated memory from the title heap, this function returns `NULL`. For more information about the title partition and title heap memory, see [Memory](/build/console-features/memory/system-memory-overview).

<a id="requirementsSection" />

## Requirements

**Header:** xmem.h

**Library:** xmem.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

[Diagnostics and memory tracking](/build/console-features/memory/system-memory-diagnostics)\
[XMem](/reference/system/xmem/xmem_members)


## Related topics

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