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

# 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\*](/services/playfab/multiplayer/networking/reference/callbacks/partyallocatememorycallback)\
*output*

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

**`freeMemoryCallback`**   [PartyFreeMemoryCallback\*](/services/playfab/multiplayer/networking/reference/callbacks/partyfreememorycallback)\
*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()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Remarks

This retrieves the memory allocation functions servicing requests by the Party library for new memory. <br /><br /> This method does not require the [Initialize()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_initialize) method to have been called first.

## Requirements

**Header:** Party.h

## See also

[PartyManager](/services/playfab/multiplayer/networking/reference/classes/PartyManager/partymanager)\
[PartyAllocateMemoryCallback](/services/playfab/multiplayer/networking/reference/callbacks/partyallocatememorycallback)\
[PartyFreeMemoryCallback](/services/playfab/multiplayer/networking/reference/callbacks/partyfreememorycallback)\
[PartyManager::SetMemoryCallbacks](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_setmemorycallbacks)


## Related topics

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