XblMultiplayerManagerLobbySessionHost

Retrieves member information for the host member in the lobby session.

Syntax

HRESULT XblMultiplayerManagerLobbySessionHost(  
         XblMultiplayerManagerMember* hostMember  
)  

Parameters

hostMember   _Out_
Type: XblMultiplayerManagerMember*

A caller-allocated structure to be populated with member information for the host member.

Return value

Type: HRESULT

HRESULT return code for this API operation. Returns __HRESULT_FROM_WIN32(ERROR_NO_SUCH_USER) if a host member doesn't exist.

Remarks

This function retrieves member information about the member that represents the host for a lobby session. If a lobby session doesn't exist, or if a host member doesn't exist for the lobby session, the function returns __HRESULT_FROM_WIN32(ERROR_NO_SUCH_USER). The host member is defined as the user with the lowest index on the host device.
The information returned by this function is valid only until XblMultiplayerManagerDoWork is called again.

Requirements

Header: multiplayer_manager_c.h

Library: Microsoft.Xbox.Services.141.GSDK.C.lib

See also

multiplayer_manager_c
XblMultiplayerManagerLobbySessionIsHost
XblMultiplayerManagerLobbySessionLocalMembers
XblMultiplayerManagerLobbySessionMembers