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

# PFLobbyJoinArrangedLobbyCompletedStateChange

> Details of the JoinArrangedLobbyCompleted PlayFab Multiplayer state change, raised when a client finishes joining an arranged matchmaking lobby.

Information specific to the *JoinArrangedLobbyCompleted* type of state change.

## Syntax

```cpp theme={null}
struct PFLobbyJoinArrangedLobbyCompletedStateChange : PFLobbyStateChange {  
    HRESULT result;  
    PFEntityKey newMember;  
    void* asyncContext;  
    PFLobbyHandle lobby;  
}  
```

### Members

**`result`**   HRESULT

Indicates the result of the JoinArrangedLobby operation.

The human-readable form of this result can be retrieved via [PFMultiplayerGetErrorMessage()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage).

**`newMember`**   [PFEntityKey](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfentitykey_clientsdk)

The local member entity provided to the call associated with this state change which is joining this lobby.

**`asyncContext`**   void\*

The async context provided to the call associated with this state change.

**`lobby`**   PFLobbyHandle\
*must not be null*

The lobby that was created and joined.

## Requirements

**Header:** PFLobby.h

## See also

[PFLobby members](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)


## Related topics

- [PFMultiplayerJoinArrangedLobby](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerjoinarrangedlobby.md)
- [PFMultiplayer C/C++ API overview - PFLobby.h](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)
- [PFLobbyStateChangeType](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbystatechangetype.md)
- [PFLobbyJoinLobbyCompletedStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyjoinlobbycompletedstatechange.md)
- [PFLobbyCreateAndJoinLobbyCompletedStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbycreateandjoinlobbycompletedstatechange.md)
