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

# XblMultiplayerManagerInitialize

> XblMultiplayerManagerInitialize

# XblMultiplayerManagerInitialize

Initializes Multiplayer Manager (MPM).

## Syntax

```cpp theme={null}
HRESULT XblMultiplayerManagerInitialize(  
         const char* lobbySessionTemplateName,  
         XTaskQueueHandle asyncQueue  
)  
```

### Parameters

*lobbySessionTemplateName*   \_In\_z\_\
Type: char\*

The name of the session template for the lobby session to be based on.

*asyncQueue*   \_In\_opt\_\
Type: XTaskQueueHandle

The task queue where all Multiplayer Manager work should be scheduled.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

This function initializes the lobby session with which Multiplayer Manager (MPM) interacts, based on a session template configured for the title. You must call this function before calling other MPM functions, otherwise errors may occur. For more information about configuring session templates, see [Configuring the Multiplayer service](/services/xbox-services/multiplayer/concepts/live-configure-the-multiplayer-service).

## 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)\
[XblMultiplayerManagerDoWork](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerdowork)


## Related topics

- [Play multiplayer with friends using Multiplayer Manager](/services/xbox-services/multiplayer/mpm/how-to/live-play-multiplayer-with-friends.md)
- [Multiplayer matchmaking with SmartMatch and MPM](/services/xbox-services/multiplayer/mpm/how-to/live-play-multiplayer-with-matchmaking.md)
- [Multiplayer Manager API overview](/services/xbox-services/multiplayer/mpm/concepts/live-multiplayer-manager-api-overview.md)
- [XblMultiplayerManagerFindMatch](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerfindmatch.md)
- [XblMultiplayerManagerJoinGameFromLobby](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerjoingamefromlobby.md)
