> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XMemGetTitleHeap

> XMemGetTitleHeap

Returns a pointer to the title heap.

## Syntax

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

### Parameters

None.

### Return value

Type: PVOID

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

## 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](https://docs.xbox.com/build/console-features/memory/system-memory-overview.md).

## Requirements

**Header:** xmem.h

**Library:** xmem.lib

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

## See also

[Diagnostics and memory tracking](https://docs.xbox.com/build/console-features/memory/system-memory-diagnostics.md)\
[XMem](https://docs.xbox.com/reference/system/xmem/xmem_members.md)


## Related topics

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