> ## 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.

# XblMultiplayerManagerLobbySessionInviteFriends

> XblMultiplayerManagerLobbySessionInviteFriends

# XblMultiplayerManagerLobbySessionInviteFriends

Displays the standard XBOX UI, allowing the user to select friends or recent players and invite them to the game.

## Syntax

```cpp theme={null}
HRESULT XblMultiplayerManagerLobbySessionInviteFriends(  
         XblUserHandle requestingUser,  
         const char* contextStringId,  
         const char* customActivationContext  
)  
```

### Parameters

*requestingUser*   \_In\_\
Type: XblUserHandle

The user who is sending the invite.

*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

If this function is invoked, Multiplayer Manager sends invites to the selected players when the user confirms the player selection in the standard XBOX UI. 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)\
[XblMultiplayerManagerLobbySessionInviteUsers](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessioninviteusers)


## Related topics

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