Skip to main content
Search for lobbies on behalf of the local user.

Syntax

Parameters

handle   PFMultiplayerHandle The handle of the PFMultiplayer API instance. searchingEntity   PFEntityKey* The PlayFab entity performing the search. searchConfiguration   PFLobbySearchConfiguration* The configuration used to filter and sort the searched lobbies. asyncContext   void*
optional
An optional, app-defined, pointer-sized context value that can be used to associate the completion state change with this call.

Return value

Type: HRESULT S_OK if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via PFMultiplayerGetErrorMessage().

Remarks

This is an asynchronous operation. Upon successful completion, the title will be provided a PFLobbyFindLobbiesCompletedStateChange with the PFLobbyFindLobbiesCompletedStateChange::result field set to S_OK. Upon a failed completion, the title will be provided a PFLobbyFindLobbiesCompletedStateChange with the PFLobbyFindLobbiesCompletedStateChange::result field set to a failure.

Requirements

Header: PFLobby.h

See also

PFLobby members
Last modified on August 10, 2026