> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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](https://docs.xbox.com/zh-CN/reference/remoting/enums/wdlaunchmode.md)**

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

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

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

## 备注

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

## 要求

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

## 另请参阅

* [WdLaunchRemoteGame](https://docs.xbox.com/zh-CN/reference/remoting/functions/wdlaunchremotegame.md)
* [WdLaunchMode](https://docs.xbox.com/zh-CN/reference/remoting/enums/wdlaunchmode.md)
* [XBOX PC 远程迭代 API](https://docs.xbox.com/zh-CN/reference/remoting/remoteiteration_members.md)


## Related topics

- [WdLaunchMode](https://docs.xbox.com/zh-CN/reference/remoting/enums/wdlaunchmode.md)
- [WdLaunchRemoteGame](https://docs.xbox.com/zh-CN/reference/remoting/functions/wdlaunchremotegame.md)
- [XBOX PC Remote Iteration API](https://docs.xbox.com/zh-CN/reference/remoting/remoteiteration_members.md)
- [WdCopyOptions](https://docs.xbox.com/zh-CN/reference/remoting/structs/wdcopyoptions.md)
- [WdDeleteOptions](https://docs.xbox.com/zh-CN/reference/remoting/structs/wddeleteoptions.md)
