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

# WdLaunchMode

> WdLaunchMode

# WdLaunchMode

指定远程游戏的启动模式。

## 语法

```cpp theme={null}
enum class WdLaunchMode : uint32_t
{
    Immediate = 0,
    Suspended = 1
};
```

### 常量

| 常量        | 值 | 说明                                                                                                                       |
| --------- | - | ------------------------------------------------------------------------------------------------------------------------ |
| Immediate | 0 | 立即启动游戏。这是默认模式。                                                                                                           |
| Suspended | 1 | 以挂起状态启动游戏。游戏进程被创建，但在调用 [WdResumeRemoteGame](/reference/remoting/functions/wdresumeremotegame) 之前不会开始执行。这在开始执行前附加调试器时很有用。 |

## 备注

此枚举用于 [WdLaunchOptions](/reference/remoting/structs/wdlaunchoptions) 结构体，以控制 [WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame) 如何在远程设备上启动游戏。

## 要求

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

## 另请参阅

* [WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame)
* [WdResumeRemoteGame](/reference/remoting/functions/wdresumeremotegame)
* [WdLaunchOptions](/reference/remoting/structs/wdlaunchoptions)
* [XBOX PC 远程迭代 API](/reference/remoting/remoteiteration_members)


## Related topics

- [WdLaunchOptions](/zh-CN/reference/remoting/structs/wdlaunchoptions.md)
- [WdLaunchRemoteGame](/zh-CN/reference/remoting/functions/wdlaunchremotegame.md)
- [WdResumeRemoteGame](/zh-CN/reference/remoting/functions/wdresumeremotegame.md)
- [XBOX PC Remote Iteration API](/zh-CN/reference/remoting/remoteiteration_members.md)
- [XBOX PC Remote (wdRemote.exe)](/zh-CN/tools/tools-pc/commandlinetools/gr-wdRemote.md)
