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

# PFLobbyFindLobbiesCompletedStateChange

> Details of the FindLobbiesCompleted PlayFab Multiplayer state change, delivered when a lobby search finishes and returns matching lobby results.

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

## Syntax

```cpp theme={null}
struct PFLobbyFindLobbiesCompletedStateChange : PFLobbyStateChange {  
    HRESULT result;  
    PFEntityKey searchingEntity;  
    void* asyncContext;  
    uint32_t searchResultCount;  
    const PFLobbySearchResult* searchResults;  
}  
```

### Members

**`result`**   HRESULT

Indicates the result of the search lobbies operation.

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

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

The entity provided to the call associated with this state change.

**`asyncContext`**   void\*

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

**`searchResultCount`**   uint32\_t

The number of results returned by the search operation.

**`searchResults`**   const [PFLobbySearchResult](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbysearchresult)\*\
*array of size `searchResultCount`*

The results returned by the search operation.

## Requirements

**Header:** PFLobby.h

## See also

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


## Related topics

- [PFMultiplayerFindLobbies](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerfindlobbies.md)
- [PFLobbyStateChangeType](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbystatechangetype.md)
- [PFMultiplayer C/C++ API overview - PFLobby.h](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)
- [PFLobbyJoinLobbyCompletedStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyjoinlobbycompletedstatechange.md)
- [PFLobbyLeaveLobbyCompletedStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyleavelobbycompletedstatechange.md)
