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

# PartyChatControl::GetCustomContext

> Retrieves the app's private, custom pointer-sized context value previously associated with this chat control object.

Retrieves the app's private, custom pointer-sized context value previously associated with this chat control object.

## Syntax

```cpp theme={null}
PartyError GetCustomContext(  
    void** customContext  
)  
```

### Parameters

**`customContext`**   void\*\*\
*output, may return nullptr*

The output custom context.

### Return value

PartyError

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

## Remarks

If no custom context has been set yet, the value pointed to by `customContext` is set to nullptr.

## Requirements

**Header:** Party.h

## See also

[PartyChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/partychatcontrol)\
[PartyChatControl::SetCustomContext](/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_setcustomcontext)


## Related topics

- [PartyChatControl::SetCustomContext](/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_setcustomcontext.md)
- [PartyXblChatUser::GetCustomContext](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_getcustomcontext.md)
- [PartyChatControl::GetNetworks](/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_getnetworks.md)
- [PartyChatControl::GetLocal](/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_getlocal.md)
- [PartyChatControl::GetDevice](/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_getdevice.md)
