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

# PFLobbyGetCustomContext

> PlayFab Multiplayer C++ SDK でロビー ハンドルに以前アタッチされたアプリ定義のポインター コンテキストを読み取るための PFLobbyGetCustomContext リファレンス。

このロビー オブジェクトに以前関連付けられた、アプリのプライベートなカスタム ポインター サイズのコンテキスト値を取得します。

## 構文

```cpp theme={null}
HRESULT PFLobbyGetCustomContext(  
    PFLobbyHandle lobby,  
    void** customContext  
)  
```

### パラメーター

**`lobby`**   PFLobbyHandle

ロビーのハンドル。

**`customContext`**   void\*\*\
*出力、nullptr を返す場合があります*

出力のカスタム コンテキスト。

### 戻り値

型: HRESULT

カスタム コンテキストの取得が成功した場合は `S_OK`、それ以外の場合はエラー コード。エラー コードの人間可読な形式は、[PFMultiplayerGetErrorMessage()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage) で取得できます。

## 備考

まだカスタム コンテキストが設定されていない場合、`customContext` が指す値は nullptr に設定されます。

## 要件

**ヘッダー:** PFLobby.h

## 関連項目

[PFLobby メンバー](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)\
[PFLobbySetCustomContext](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbysetcustomcontext)


## Related topics

- [PFLobbySetCustomContext](/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbysetcustomcontext.md)
- [PFMultiplayer C/C++ API 概要 - PFLobby.h](/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)
- [PFMatchmakingTicketGetCustomContext](/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetcustomcontext.md)
- [PartyDevice::GetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyDevice/methods/partydevice_getcustomcontext.md)
- [PartyEndpoint::GetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getcustomcontext.md)
