> ## 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](/reference/remoting/enums/wdlaunchmode)**

游戏的启动模式。使用 `WdLaunchMode::Immediate` 立即启动游戏，或使用 `WdLaunchMod::Suspended` 以挂起状态启动游戏（用于在开始执行之前附加调试器）。

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

可选的公共根别名。传入 `nullptr` 以使用默认别名。

## 备注

通过 `launchOptions` 参数将此结构体传递给 [WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame) 以控制游戏的启动方式。如果为 `launchOptions` 传入 `nullptr`，则游戏立即启动且不使用任何公共根别名。

## 要求

| 要求          | 值                   |
| ----------- | ------------------- |
| **头文件**     | WdRemoteIteration.h |
| **库**       | wdremoteapi.lib     |
| **支持的操作系统** | Windows 11 及更高版本    |
| **支持的体系结构** | x64、ARM64           |

## 另请参阅

* [WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame)
* [WdLaunchMode](/reference/remoting/enums/wdlaunchmode)
* [XBOX PC 远程迭代 API](/reference/remoting/remoteiteration_members)


## Related topics

- [WdLaunchMode](/zh-CN/reference/remoting/enums/wdlaunchmode.md)
- [WdLaunchRemoteGame](/zh-CN/reference/remoting/functions/wdlaunchremotegame.md)
- [XBOX PC Remote Iteration API](/zh-CN/reference/remoting/remoteiteration_members.md)
- [WdCopyOptions](/zh-CN/reference/remoting/structs/wdcopyoptions.md)
- [WdCopySearchOptions](/zh-CN/reference/remoting/structs/wdcopysearchoptions.md)
