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

# WdLaunchOptions

> WdLaunchOptions

# WdLaunchOptions

リモート デバイス上でゲームを起動するためのオプションを指定します。

## 構文

```cpp theme={null}
struct WdLaunchOptions
{
    WdLaunchMode launchMode;
    const char* commonRootAlias;
};
```

### メンバー

`launchMode`\
Type: **[WdLaunchMode](/reference/remoting/enums/wdlaunchmode)**

ゲームの起動モード。ゲームを直ちに開始するには `WdLaunchMode::Immediate` を、中断状態で開始するには `WdLaunchMod::Suspended` を使用します (実行が開始する前にデバッガーをアタッチする場合に便利)。

`commonRootAlias`\
Type: **const char\***

オプションの共通ルート エイリアス。既定のエイリアスを使用するには `nullptr` を渡します。

## 解説

ゲームの起動方法を制御するには、`launchOptions` パラメーターを介してこの構造体を [WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame) に渡します。`launchOptions` に `nullptr` を渡した場合、共通ルート エイリアスなしでゲームが直ちに起動されます。

## 要件

| 要件                   | 値                   |
| -------------------- | ------------------- |
| **ヘッダー**             | WdRemoteIteration.h |
| **ライブラリ**            | wdremoteapi.lib     |
| **サポートされている OS**     | Windows 11 以降       |
| **サポートされているアーキテクチャ** | x64、ARM64           |

## 関連項目

* [WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame)
* [WdLaunchMode](/reference/remoting/enums/wdlaunchmode)
* [XBOX PC Remote Iteration API](/reference/remoting/remoteiteration_members)
