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

# XtfShutdownTitleOS

> XtfShutdownTitleOS

# XtfShutdownTitleOS

關閉作用中的遊戲和 Game OS。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT XXtfShutdownTitleOS(
         PCWSTR address
)  
```

<a id="parametersSection" />

### 參數

*address*<br />類型：PCWSTR

\[in] 主機的位址。

<a id="retvalSection" />

### 傳回值

類型：HRESULT

如果成功，則傳回 `S_OK`；否則傳回 HRESULT 錯誤碼。

<a id="remarksSection" />

## 備註

此函式會同時關閉作用中的遊戲和 Game OS。與 [IXtfApplicationClient::Terminate](/zh-TW/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/terminate-ixtfapplicationclient-xtfapplication-xbox-microsoft-m) 方法不同，此函式會忽略快速反覆運算模式，並完全終止作用中的遊戲和 Game OS。如需快速反覆運算模式的詳細資訊，請參閱[應用程式管理 (xbapp.exe) (NDA 主題)](/zh-TW/tools/tools-console/commandlinetools/xbapp) 和[管理應用程式和檔案 (NDA 主題)](/zh-TW/tools/tools-console/xbom/manager-tool-managing-applications)。

<a id="requirementsSection" />

## 需求

**標頭：** xtfapi.h

**程式庫：** XtfApi.lib

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

<a id="seealsoSection" />

## 另請參閱

[從 PC 執行部署 (NDA 主題)](/zh-TW/home/setup-install/concepts/deployment)<br />[XTF 傳輸錯誤 (NDA 主題)](/zh-TW/tools/tools-console/commandlinetools/xtf-transport-errors)<br />[其他 Xtf API](/zh-TW/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

- [IXtfConsoleControlClient::ShutdownConsole](/zh-TW/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_shutdownconsole.md)
- [Shutdown Multiplayer Server](/api-reference/multiplayerserver/shutdown-multiplayer-server.md)
- [XtfStartTitleOS](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfstarttitleos-xtfapi-xbox-windows-m.md)
- [XtfCacheTitleOS](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfcachetitleos-xtfapi-xbox-windows-m.md)
- [IXtfConsoleControlClient](/zh-TW/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient.md)
