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

Multiplayer Manager (MPM) を初期化します。

## 構文

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

### パラメーター

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

ロビー セッションの基盤となるセッション テンプレートの名前。

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

すべての Multiplayer Manager の作業をスケジュールするタスク キュー。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻り値コード。

## 解説

この関数は、タイトル用に構成されたセッション テンプレートに基づいて、Multiplayer Manager (MPM) が対話するロビー セッションを初期化します。他の MPM 関数を呼び出す前にこの関数を呼び出す必要があります。呼び出さないとエラーが発生する場合があります。セッション テンプレートの構成の詳細については、「[マルチプレイヤー サービスの構成](/services/xbox-services/multiplayer/concepts/live-configure-the-multiplayer-service)」を参照してください。

## 要件

**ヘッダー:** multiplayer\_manager\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

[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

- [Multiplayer Manager を使用してフレンドとマルチプレイヤーをプレイする](/ja-jp/services/xbox-services/multiplayer/mpm/how-to/live-play-multiplayer-with-friends.md)
- [SmartMatch と MPM によるマルチプレイヤー マッチメイキング](/ja-jp/services/xbox-services/multiplayer/mpm/how-to/live-play-multiplayer-with-matchmaking.md)
- [XblMultiplayerManagerFindMatch](/ja-jp/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerfindmatch.md)
- [Multiplayer Manager API の概要](/ja-jp/services/xbox-services/multiplayer/mpm/concepts/live-multiplayer-manager-api-overview.md)
- [XblMultiplayerManagerJoinGameFromLobby](/ja-jp/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerjoingamefromlobby.md)
