XblMultiplayerManagerGameSessionIsHost

Indicates whether the specified user is the host for the game session.

Syntax

bool XblMultiplayerManagerGameSessionIsHost(  
         uint64_t xuid  
)  

Parameters

xuid   _In_
Type: uint64_t

The Xbox User ID (XUID) of the user.

Return value

Type: bool

Returns true if the XUID is the host of the game session; otherwise, false.

Remarks

This function returns false if a game session doesn't exist for the lobby session, or if the Xbox User ID (XUID) specified in xuid isn't the host for the game session. You can retrieve the host for a game session by calling XblMultiplayerManagerGameSessionHost. For more information, see Multiplayer Manager API overview.

Requirements

Header: multiplayer_manager_c.h

Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

multiplayer_manager_c
XblMultiplayerManagerGameSessionSetSynchronizedHost