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

# XtfStartTitleOSByVersion

> XtfStartTitleOSByVersion

# XtfStartTitleOSByVersion

從主機上的快取啟動或重新啟動符合指定 [FourPartVersion](/zh-TW/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s) 的 Game OS。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT XtfStartTitleOSByVersion(
         PCWSTR address,
         FourPartVersion version
)  
```

<a id="parametersSection" />

### 參數

*address*<br />類型：PCWSTR

\[in] 主機的位址。

*version*<br />類型：[FourPartVersion](/zh-TW/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s)

\[in] 要啟動之 Game OS 的四部分版本資訊。

<a id="retvalSection" />

### 傳回值

類型：HRESULT

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

<a id="remarksSection" />

## 備註

使用此函式，從主機上的快取啟動或重新啟動符合指定 `FourPartVersion` 的 Game OS。您可以使用 [XtfGetCachedTitleOSVersions](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m) 函式取得主機上快取的每個 Game OS 的 `FourPartVersion`，或使用 [XtfGetTitleOSFourPartVersion](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgettitleosfourpartversion-xtfapi-xbox-windows-m) 函式取得目前執行中遊戲之 Game OS 的 `FourPartVersion`。

如果您沒有要啟動或重新啟動之 Game OS 的 [FourPartVersion](/zh-TW/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s)，請改用 [XtfStartTitleOS](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfstarttitleos-xtfapi-xbox-windows-m) 函式，藉由指定不同的識別碼 (例如 Game OS 的 GameOs.vxd 檔案完整路徑和檔案名稱) 來啟動或重新啟動 Game OS。您也可以使用 [XtfStartTitleOSByGameConfig](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbygameconfig-xtfapi-xbox-windows-m) 函式，啟動或重新啟動在指定之 MicrosoftGame.config 檔案內容中所識別的 Game OS。

如有需要，您可以呼叫 [XtfCacheTitleOS](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfcachetitleos-xtfapi-xbox-windows-m) 函式，將 Game OS 新增至主機上的快取。如需管理已佈建之 Game OS 檔案的詳細資訊，請參閱[應用程式管理 (xbapp.exe) (NDA 主題)](/zh-TW/tools/tools-console/commandlinetools/xbapp) 和[佈建 (xbprovision.exe) (NDA 主題)](/zh-TW/tools/tools-console/commandlinetools/xbprovision)。

<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

- [XtfStartTitleOS](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfstarttitleos-xtfapi-xbox-windows-m.md)
- [XtfGetCachedTitleOSVersionsCallback](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversionscallback-xtfapi-xbox-windows-m.md)
- [FourPartVersion](/zh-TW/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s.md)
- [XtfStartTitleOSByGameConfig](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbygameconfig-xtfapi-xbox-windows-m.md)
- [XtfGetCachedTitleOSVersions](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m.md)
