Redigera

PFLobbyGetServer

Important

XBOX Docs are now on docs.xbox.com! This page is kept as an archive and is no longer being updated. Visit our documentation on docs.xbox.com for the latest information and updates.

Visit the latest docs on docs.xbox.com

Gets the server entity joined to the lobby.

Syntax

HRESULT PFLobbyGetServer(  
    PFLobbyHandle lobby,  
    const PFEntityKey** server  
)  

Parameters

lobby   PFLobbyHandle

The handle of the lobby.

server   PFEntityKey**
library-allocated output, may return nullptr

The output lobby server entity.

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

If this lobby isn't a client-owned lobby, no server is returned.

Requirements

Header: PFLobby.h

See also

PFLobby members