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

# PFLobbyGetMaxMemberCount

> PlayFab Multiplayer C++ SDK API を使用して PlayFab ロビーで許可される最大メンバー数を読み取るための PFLobbyGetMaxMemberCount リファレンス。

ロビーの最大メンバー数を取得します。

## 構文

```cpp theme={null}
HRESULT PFLobbyGetMaxMemberCount(  
    PFLobbyHandle lobby,  
    uint32_t* maxMemberCount  
)  
```

### パラメーター

**`lobby`**   PFLobbyHandle

ロビーのハンドル。

**`maxMemberCount`**   uint32\_t\*\
*出力*

出力の最大メンバー数。

### 戻り値

型: HRESULT

呼び出しが成功した場合は `S_OK`、それ以外の場合はエラー コード。結果の人間可読な形式は、[PFMultiplayerGetErrorMessage()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage.md) で取得できます。

## 備考

このロビー オブジェクトが [PFMultiplayerJoinLobby()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerjoinlobby.md) の呼び出しで作成された場合、このメソッドは [PFMultiplayerStartProcessingLobbyStateChanges()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartprocessinglobbystatechanges.md) が [PFLobbyUpdatedStateChange::maxMembersUpdated](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyupdatedstatechange.md) が true に設定された [PFLobbyUpdatedStateChange](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyupdatedstatechange.md) を提供するまでエラーを返します。ロビーへの参加が成功する場合、このフィールドは PFMultiplayerStartProcessingLobbyStateChanges() が [PFLobbyJoinLobbyCompletedStateChange](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyjoinlobbycompletedstatechange.md) を提供するまでに設定されることが保証されます。\
\
&#x20;このロビー オブジェクトが [PFMultiplayerClaimServerLobby()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerclaimserverlobby.md) の呼び出しで作成された場合、このメソッドは [PFMultiplayerStartProcessingLobbyStateChanges()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartprocessinglobbystatechanges.md) が [PFLobbyUpdatedStateChange::maxMembersUpdated](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyupdatedstatechange.md) が true に設定された [PFLobbyUpdatedStateChange](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyupdatedstatechange.md) を提供するまでエラーを返します。ロビーのクレームが成功する場合、このフィールドは PFMultiplayerStartProcessingLobbyStateChanges() が [PFLobbyClaimServerLobbyCompletedStateChange](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyclaimserverlobbycompletedstatechange.md) を提供するまでに設定されることが保証されます。

## 要件

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

## 関連項目

[PFLobby メンバー](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)


## Related topics

- [Lobby.MaxMemberCount](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/Lobby/MaxMemberCount.md)
- [Lobby.LobbyMaxMemberPropertyCount](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyConstants/LobbyMaxMemberPropertyCount.md)
- [Lobby.LobbyMaxMemberCountLowerLimit](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyConstants/LobbyMaxMemberCountLowerLimit.md)
- [Lobby.LobbyMaxMemberCountUpperLimit](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyConstants/LobbyMaxMemberCountUpperLimit.md)
- [LobbySearchResult.MaxMemberCount](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbySearchResult/MaxMemberCount.md)
