> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblMultiplayerManagerGameSessionIsHost

> XblMultiplayerManagerGameSessionIsHost

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

## Syntax

```cpp theme={null}
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](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionhost.md). For more information, see [Multiplayer Manager API overview](https://docs.xbox.com/services/xbox-services/multiplayer/mpm/concepts/live-multiplayer-manager-api-overview.md).

## Requirements

**Header:** multiplayer\_manager\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[multiplayer\_manager\_c](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_manager_c/multiplayer_manager_c_members.md)\
[XblMultiplayerManagerGameSessionSetSynchronizedHost](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionsetsynchronizedhost.md)


## Related topics

- [XblMultiplayerManagerGameSessionHost](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionhost.md)
- [Multiplayer Manager API overview](https://docs.xbox.com/services/xbox-services/multiplayer/mpm/concepts/live-multiplayer-manager-api-overview.md)
- [multiplayer_manager_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_manager_c/multiplayer_manager_c_members.md)
- [XblMultiplayerManagerGameSessionSetSynchronizedHost](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionsetsynchronizedhost.md)
- [XblMultiplayerManagerLobbySessionIsHost](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessionishost.md)
