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

# XblMemGetFunctions

> XblMemGetFunctions

# XblMemGetFunctions

Gets the memory hook functions previously set by [XblMemSetFunctions](/reference/live/xsapi-c/xbox_live_global_c/functions/xblmemsetfunctions).

## Syntax

```cpp theme={null}
HRESULT XblMemGetFunctions(  
         XblMemAllocFunction* memAllocFunc,  
         XblMemFreeFunction* memFreeFunc  
)  
```

### Parameters

*memAllocFunc*   \_Out\_\
Type: XblMemAllocFunction\*

Set to the current allocation callback. Returns the default routine if not previously set.

*memFreeFunc*   \_Out\_\
Type: XblMemFreeFunction\*

Set to the current memory free callback. Returns the default routine if not previously set.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

This method allows the application get the default memory allocation routines. This can be used along with XblMemSetFunctions() to monitor all memory allocations.

## Requirements

**Header:** xbox\_live\_global\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[xbox\_live\_global\_c](/reference/live/xsapi-c/xbox_live_global_c/xbox_live_global_c_members)


## Related topics

- [XblInitialize](/reference/live/xsapi-c/xbox_live_global_c/functions/xblinitialize.md)
- [XblMemSetFunctions](/reference/live/xsapi-c/xbox_live_global_c/functions/xblmemsetfunctions.md)
- [HCMemGetFunctions](/reference/live/httpclient/httpclient/functions/hcmemgetfunctions.md)
- [PFMemGetFunctions](/services/playfab/api-references/c/pfplatform/functions/pfmemgetfunctions.md)
- [XblMultiplayerSessionGetMember](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessiongetmember.md)
