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

# PartyManager::GetMemoryCallbacks

> Retrieves the memory allocation and freeing callbacks the Party library is using.

Retrieves the memory allocation and freeing callbacks the Party library is using.

## Syntax

```cpp theme={null}
PartyError GetMemoryCallbacks(  
    PartyAllocateMemoryCallback* allocateMemoryCallback,  
    PartyFreeMemoryCallback* freeMemoryCallback  
)  
```

### Parameters

**`allocateMemoryCallback`**   [PartyAllocateMemoryCallback\*](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/callbacks/partyallocatememorycallback.md)\
*output*

A place to store a pointer to the memory allocation callback currently used.

**`freeMemoryCallback`**   [PartyFreeMemoryCallback\*](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/callbacks/partyfreememorycallback.md)\
*output*

A place to store a pointer to the memory freeing callback currently used.

### Return value

PartyError

`c_partyErrorSuccess` if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via [GetErrorMessage()](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage.md).

## Remarks

This retrieves the memory allocation functions servicing requests by the Party library for new memory. \
\
&#x20;This method does not require the [Initialize()](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_initialize.md) method to have been called first.

## Requirements

**Header:** Party.h

## See also

[PartyManager](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/partymanager.md)\
[PartyAllocateMemoryCallback](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/callbacks/partyallocatememorycallback.md)\
[PartyFreeMemoryCallback](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/callbacks/partyfreememorycallback.md)\
[PartyManager::SetMemoryCallbacks](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_setmemorycallbacks.md)


## Related topics

- [PartyManager::SetMemoryCallbacks](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_setmemorycallbacks.md)
- [PartyAllocateMemoryCallback](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/callbacks/partyallocatememorycallback.md)
- [PartyFreeMemoryCallback](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/callbacks/partyfreememorycallback.md)
- [PartyManager::Initialize](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_initialize.md)
- [PartyXblManager::GetMemoryCallbacks](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_getmemorycallbacks.md)
