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

# XblMultiplayerManagerLobbySessionInviteUsers

> XblMultiplayerManagerLobbySessionInviteUsers

# XblMultiplayerManagerLobbySessionInviteUsers

Invites the specified users to the game without displaying additional UI.

## Syntax

```cpp theme={null}
HRESULT XblMultiplayerManagerLobbySessionInviteUsers(  
         XblUserHandle user,  
         const uint64_t* xuids,  
         size_t xuidsCount,  
         const char* contextStringId,  
         const char* customActivationContext  
)  
```

### Parameters

*user*   \_In\_\
Type: XblUserHandle

The user who is sending the invite.

*xuids*   \_In\_\
Type: uint64\_t\*

The array of XBOX User IDs (XUIDs) to be invited.

*xuidsCount*   \_In\_\
Type: size\_t

The size of the `xuids` array.

*contextStringId*   \_In\_opt\_z\_\
Type: char\*

Optional. The custom context string ID, a string that is defined during XBOX Live ingestion, to identify the custom invitation text that is added to the standard invitation text. The ID string must be prefixed with three slash characters (" /// ").

*customActivationContext*   \_In\_opt\_z\_\
Type: char\*

Optional. The activation context string, a game-defined string that is passed to the invited game client and interpreted as desired by the game.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

Multiplayer Manager sends invites to the selected players when this function is invoked. If a selected player accepts the invite, the title is notified. For GDK-based games, the title is notified by invoking the callback function specified when the [XGameInviteRegisterForEvent](/reference/system/xgameinvite/functions/xgameinviteregisterforevent) function was invoked. For games based on other platforms, the title is activated. For more information, see [Receiving invites](/services/xbox-services/multiplayer/invites/how-to/live-invites-receive).

## Requirements

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

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

## See also

[multiplayer\_manager\_c](/reference/live/xsapi-c/multiplayer_manager_c/multiplayer_manager_c_members)\
[XblMultiplayerManagerJoinLobby](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerjoinlobby)\
[XblMultiplayerManagerLobbySessionAddLocalUser](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessionaddlocaluser)\
[XblMultiplayerManagerLobbySessionInviteFriends](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessioninvitefriends)


## Related topics

- [XblMultiplayerManagerLobbySessionInviteFriends](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessioninvitefriends.md)
- [XblMultiplayerManagerLobbySessionRemoveLocalUser](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessionremovelocaluser.md)
- [XblMultiplayerManagerLobbySessionAddLocalUser](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessionaddlocaluser.md)
- [XblMultiplayerManagerJoinLobby](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerjoinlobby.md)
- [Sending game invites using Multiplayer Manager](/services/xbox-services/multiplayer/mpm/how-to/live-send-game-invites.md)
