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

# PFMemGetFunctions

> Gets the memory hook functions to allow callers to control route memory allocations to their own memory manager. This method allows the application get the.

Gets the memory hook functions to allow callers to control route memory allocations to their own memory manager. This method allows the application get the default memory allocation routines. This can be used along with PFMemSetFunctions() to monitor all memory allocations.

## Syntax

```cpp theme={null}
HRESULT PFMemGetFunctions(  
    PFMemoryHooks* hooks  
)  
```

### Parameters

**`hooks`**   [PFMemoryHooks\*](/services/playfab/api-references/c/pfplatform/structs/pfmemoryhooks)<br />*output*

Struct to be populated with the current memory hooks. Defaults will be returned if custom hooks weren't previously set.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Requirements

**Header:** PFPlatform.h

## See also

[PFPlatform members](/services/playfab/api-references/c/pfplatform/pfplatform_members)


## Related topics

- [Services C API overview - PFPlatform.h](/services/playfab/api-references/c/pfplatform/pfplatform_members.md)
- [HCMemGetFunctions](/reference/live/httpclient/httpclient/functions/hcmemgetfunctions.md)
- [XblMemGetFunctions](/reference/live/xsapi-c/xbox_live_global_c/functions/xblmemgetfunctions.md)
- [XMemGetTitleHeap](/reference/system/xmem/functions/xmemgettitleheap.md)
- [XMemGetWin32HeapName](/reference/system/xmem/functions/xmemgetwin32heapname.md)
