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

# XtfGetCachedTitleOSVersionsCallback

> XtfGetCachedTitleOSVersionsCallback

Callback invoked for each Game OS found by [XtfGetCachedTitleOSVersions](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m.md).

## Syntax

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

### Parameters

*version*\
Type: [FourPartVersion](https://docs.xbox.com/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s.md)

\[in] The four-part version number of the cached Game OS.

*flags*\
Type: UINT32

\[in] A bitwise-OR combination of flags that provide additional information about the cached Game OS. This parameter supports the following flags:

| Flag | Value | Description |
| - | - | - |
| XTF\_CACHED\_TITLE\_OS\_IS\_FALLBACK | 0x0001 | Indicates that this Game OS is the fallback OS, which cannot be deleted or replaced. |

*context*\
Type: PVOID

\[in, optional] A pointer to a context object, passed from `XtfGetCachedTitleOSVersions`.

### Return value

None.

## Remarks

This callback is invoked by `XtfGetCachedTitleOSVersions` for each provisioned Game OS cached on the console. You can use the `FourPartVersion` specified in `version` to invoke the [XtfRemoveTitleOSFromCacheByVersion](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcachebyversion-xtfapi-xbox-windows-m.md) or [XtfStartTitleOSByVersion](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbyversion-xtfapi-xbox-windows-m.md) functions. For more information about managing provisioned Game OS files, see [Application Management (xbapp.exe) (NDA topic)](https://docs.xbox.com/tools/tools-console/commandlinetools/xbapp.md) and [Provision (xbprovision.exe) (NDA topic)](https://docs.xbox.com/tools/tools-console/commandlinetools/xbprovision.md).

## Requirements

**Header:** xtfapi.h

**Library:** XtfApi.lib

**Supported platforms:** Windows (for XBOX console tools)

## See also

[XTF Transport Errors (NDA topic)](https://docs.xbox.com/tools/tools-console/commandlinetools/xtf-transport-errors.md)\
[Additional Xtf APIs](https://docs.xbox.com/reference/tools/xtf/xtfapi/atoc-xtfapi.md)


## Related topics

- [XtfGetCachedTitleOSVersions](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m.md)
- [Additional Xtf APIs (API contents)](https://docs.xbox.com/reference/tools/xtf/xtfapi/atoc-xtfapi.md)
- [XtfGetTitleOSFourPartVersion](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfgettitleosfourpartversion-xtfapi-xbox-windows-m.md)
- [XtfStartTitleOSByVersion](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbyversion-xtfapi-xbox-windows-m.md)
- [XtfCacheTitleOS](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfcachetitleos-xtfapi-xbox-windows-m.md)
