> ## 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`\
類型：**[WdLaunchMode](/zh-TW/reference/remoting/enums/wdlaunchmode)**

遊戲的啟動模式。使用 `WdLaunchMode::Immediate` 立即啟動遊戲，或使用 `WdLaunchMod::Suspended` 以暫停狀態啟動遊戲 (適用於在開始執行前附加偵錯工具)。

`commonRootAlias`\
類型：**const char\***

選用的通用根別名。傳遞 `nullptr` 以使用預設別名。

## 備註

透過 `launchOptions` 參數將此結構傳遞給 [WdLaunchRemoteGame](/zh-TW/reference/remoting/functions/wdlaunchremotegame)，以控制遊戲的啟動方式。如果為 `launchOptions` 傳遞 `nullptr`，則會立即啟動遊戲，且不使用通用根別名。

## 需求

| 需求 | 值 |
| - | - |
| **標頭** | WdRemoteIteration.h |
| **程式庫** | wdremoteapi.lib |
| **支援的作業系統** | Windows 11 及更新版本 |
| **支援的架構** | x64、ARM64 |

## 另請參閱

* [WdLaunchRemoteGame](/zh-TW/reference/remoting/functions/wdlaunchremotegame)
* [WdLaunchMode](/zh-TW/reference/remoting/enums/wdlaunchmode)
* [XBOX PC 遠端反覆運算 API](/zh-TW/reference/remoting/remoteiteration_members)


## Related topics

- [WdLaunchOptions](/reference/remoting/structs/wdlaunchoptions.md)
- [WdLaunchMode](/reference/remoting/enums/wdlaunchmode.md)
