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

# XtfGetCachedTitleOSVersionsCallback

> XtfGetCachedTitleOSVersionsCallback

# XtfGetCachedTitleOSVersionsCallback

針對 [XtfGetCachedTitleOSVersions](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m) 找到的每個 Game OS 叫用的回呼。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT XtfGetCachedTitleOSVersionsCallback(
         FourPartVersion version,
         UINT32 flags,
         PVOID context
)  
```

<a id="parametersSection" />

### 參數

*version*\
類型: [FourPartVersion](/zh-TW/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s)

\[in] 快取之 Game OS 的四部分版本號碼。

*flags*\
類型: UINT32

\[in] 旗標的位元 OR 組合，提供快取之 Game OS 的其他資訊。此參數支援下列旗標:

| 旗標 | 值 | 描述 |
| - | - | - |
| XTF\_CACHED\_TITLE\_OS\_IS\_FALLBACK | 0x0001 | 表示此 Game OS 為後援 OS，無法刪除或取代。 |

*context*\
類型: PVOID

\[in, optional] 從 `XtfGetCachedTitleOSVersions` 傳遞之內容物件的指標。

<a id="retvalSection" />

### 傳回值

無。

<a id="remarksSection" />

## 備註

`XtfGetCachedTitleOSVersions` 會針對快取在主機上的每個已佈建 Game OS 叫用此回呼。您可以使用 `version` 中指定的 `FourPartVersion` 來叫用 [XtfRemoveTitleOSFromCacheByVersion](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcachebyversion-xtfapi-xbox-windows-m) 或 [XtfStartTitleOSByVersion](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbyversion-xtfapi-xbox-windows-m) 函式。如需管理已佈建 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" />

## 另請參閱

[XTF 傳輸錯誤 (NDA 主題)](/zh-TW/tools/tools-console/commandlinetools/xtf-transport-errors)\
[其他 Xtf API](/zh-TW/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

- [XtfGetCachedTitleOSVersions](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m.md)
- [XtfGetTitleOSFourPartVersion](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfgettitleosfourpartversion-xtfapi-xbox-windows-m.md)
- [XtfStartTitleOSByVersion](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbyversion-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)
