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

# XtfGetCachedTitleOSVersions

> XtfGetCachedTitleOSVersions

# XtfGetCachedTitleOSVersions

取得快取在主機上之每個 Game OS 的版本資訊。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT XtfGetCachedTitleOSVersions(
         PCWSTR address,
         XtfGetCachedTitleOSVersionsCallback clientCallback,
         PVOID context
)  
```

<a id="parametersSection" />

### 參數

*address*<br />類型: PCWSTR

\[in] 主機的位址。

*clientCallback*<br />類型: [XtfGetCachedTitleOSVersionsCallback](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversionscallback-xtfapi-xbox-windows-m)

\[in] 針對主機上快取中的每個 Game OS 叫用的回呼。

*context*<br />類型: PVOID

\[in, optional] 要傳入回呼之內容物件的指標。

<a id="retvalSection" />

### 傳回值

類型: HRESULT

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

<a id="remarksSection" />

## 備註

使用此函式搭配 [XtfGetCachedTitleOSVersionsCallback](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversionscallback-xtfapi-xbox-windows-m) 函式，取得快取在主機上之每個 Game OS 的版本資訊。對於快取中的每個 Game OS，回呼函式都會提供包含四部分版本號碼的 [FourPartVersion](/zh-TW/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s)，以及該 Game OS 的其他資訊。

您可以呼叫 [XtfCacheTitleOS](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfcachetitleos-xtfapi-xbox-windows-m) 函式將 Game OS 新增至主機上的快取，或呼叫 [XtfRemoveTitleOSFromCache](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcache-xtfapi-xbox-windows-m) 或 [XtfRemoveTitleOSFromCacheByVersion](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcachebyversion-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

- [XtfGetCachedTitleOSVersionsCallback](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversionscallback-xtfapi-xbox-windows-m.md)
- [XtfGetTitleOSFourPartVersion](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgettitleosfourpartversion-xtfapi-xbox-windows-m.md)
- [XtfCacheTitleOS](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfcachetitleos-xtfapi-xbox-windows-m.md)
- [XtfStartTitleOS](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfstarttitleos-xtfapi-xbox-windows-m.md)
- [XtfStartTitleOSByVersion](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbyversion-xtfapi-xbox-windows-m.md)
