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

# XtfGetTitleOSFourPartVersion

> XtfGetTitleOSFourPartVersion

# XtfGetTitleOSFourPartVersion

Gets version information about the Game OS for the currently running title.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
HRESULT XtfGetTitleOSFourPartVersion(
         PCWSTR address,
         UINT32* flags,
         FourPartVersion* version
)
```

<a id="parametersSection" />

### Parameters

*address*<br />Type: PCWSTR

\[in] The address of the console.

*flags*<br />Type: UINT32\*

\[out] A bitwise-OR combination of flags that provide additional information about the 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. |

*version*<br />Type: [FourPartVersion](/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s)\*

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

<a id="retvalSection" />

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an HRESULT error code.

<a id="remarksSection" />

## Remarks

Use this function to return version information about the Game OS for the currently running title. If there is no Game OS currently running, an error occurs. You can also use the [XtfGetCachedTitleOSVersions](/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m) function to return version information about other Game OS versions cached on the console. For more information about managing provisioned Game OS files, see [Application Management (xbapp.exe) (NDA topic)](/tools/tools-console/commandlinetools/xbapp) and [Provision (xbprovision.exe) (NDA topic)](/tools/tools-console/commandlinetools/xbprovision).

<a id="requirementsSection" />

## Requirements

**Header:** xtfapi.h

**Library:** XtfApi.lib

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

<a id="seealsoSection" />

## See also

[Run from PC Deployment (NDA topic)](/home/setup-install/concepts/deployment)<br />[XtfGetPackageFullName](/reference/tools/xtf/xtfapi/functions/xtfgetpackagefullname-xtfapi-xbox-windows-m)<br />[XtfGetAumid](/reference/tools/xtf/xtfapi/functions/xtfgetaumid-xtfapi-xbox-windows-m)<br />[XTF Transport Errors (NDA topic)](/tools/tools-console/commandlinetools/xtf-transport-errors)<br />[Additional Xtf APIs](/reference/tools/xtf/xtfapi/atoc-xtfapi)
