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

# Resume

> IXtfApplicationClient::Resume

# IXtfApplicationClient::Resume

恢复具有指定包 moniker 的应用的执行。

## 语法

```cpp theme={null}
public:
HRESULT Resume(
         LPCWSTR pszPackageMoniker
)  
```

### 参数

*pszPackageMoniker*\
类型：LPCWSTR

指向要恢复的应用的包 moniker 的指针。

### 返回值

类型：HRESULT

如果成功则返回 `S_OK`；否则返回 HRESULT 错误代码。

## 备注

此方法恢复具有指定包 moniker 的应用的所有进程的执行。此方法类似于 XBOX Tools Framework (XTF) 中包含的应用程序管理 (xbapp.exe) 工具的 `xbapp resume` 命令。有关 `xbapp resume` 命令的详细信息，请参阅[应用程序管理 (xbapp.exe) (NDA 主题)](https://docs.xbox.com/zh-CN/tools/tools-console/commandlinetools/xbapp.md)。

使用此方法可以恢复之前由调用 [IXtfApplicationClient::Suspend](https://docs.xbox.com/zh-CN/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/suspend-ixtfapplicationclient-xtfapplication-xbox-windows.md) 方法或从应用程序管理工具运行 `xbapp suspend` 命令而挂起的应用。有关游戏生命周期状态的详细信息，请参阅 [XBOX 游戏生命周期 (NDA 主题)](https://docs.xbox.com/zh-CN/build/console-features/console-workflows/xbox-game-life-cycle.md)。

## 要求

**头文件：** xtfapplication.h

**库：** xtfapplication.lib

**支持的平台：** Windows（用于 XBOX 主机工具）

## 另请参阅

[IXtfApplicationClient Interface](https://docs.xbox.com/zh-CN/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md)\
[XtfApplication](https://docs.xbox.com/zh-CN/reference/tools/xtf/xtfapplication/xtfapplication-xbox-microsoft-n.md)


## Related topics

- [xcurl_global_resume](https://docs.xbox.com/zh-CN/reference/networking/xcurl/functions/xcurl_global_resume.md)
- [WdResumeRemoteGame](https://docs.xbox.com/zh-CN/reference/remoting/functions/wdresumeremotegame.md)
- [PlayFabMultiplayerManager.Get().Resume](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunityresume.md)
- [XBOX PC Remote (wdRemote.exe)](https://docs.xbox.com/zh-CN/tools/tools-pc/commandlinetools/gr-wdRemote.md)
- [处理令牌过期](https://docs.xbox.com/zh-CN/services/playfab/sdks/c/relogin.md)
