> ## 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 之應用程式的所有處理序。此方法類似於應用程式管理 (xbapp.exe) 工具中的 `xbapp resume` 命令，該工具隨附於 XBOX Tools Framework (XTF) 中。如需 `xbapp resume` 命令的詳細資訊，請參閱[應用程式管理 (xbapp.exe) (NDA 主題)](https://docs.xbox.com/zh-TW/tools/tools-console/commandlinetools/xbapp.md)。

使用此方法可繼續先前透過叫用 [IXtfApplicationClient::Suspend](https://docs.xbox.com/zh-TW/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/suspend-ixtfapplicationclient-xtfapplication-xbox-windows.md) 方法或從應用程式管理工具呼叫 `xbapp suspend` 命令而暫停的應用程式。如需遊戲生命週期狀態的詳細資訊，請參閱 [XBOX 遊戲生命週期 (NDA 主題)](https://docs.xbox.com/zh-TW/build/console-features/console-workflows/xbox-game-life-cycle.md)。

## 需求

**標頭：** xtfapplication.h

**程式庫：** xtfapplication.lib

**支援的平台：** Windows (適用於 XBOX 主機工具)

## 另請參閱

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


## Related topics

- [xcurl_global_resume](https://docs.xbox.com/zh-TW/reference/networking/xcurl/functions/xcurl_global_resume.md)
- [WdResumeRemoteGame](https://docs.xbox.com/zh-TW/reference/remoting/functions/wdresumeremotegame.md)
- [PlayFabMultiplayerManager.Get().Resume](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunityresume.md)
- [XBOX PC 遠端 (wdRemote.exe)](https://docs.xbox.com/zh-TW/tools/tools-pc/commandlinetools/gr-wdRemote.md)
- [xcurl_global_suspend](https://docs.xbox.com/zh-TW/reference/networking/xcurl/functions/xcurl_global_suspend.md)
