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

現在実行中のタイトルの Game OS に関するバージョン情報を取得します。

<a id="syntaxSection" />

## Syntax

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

<a id="parametersSection" />

### Parameters

*address*<br />型: PCWSTR

\[in] コンソールのアドレスです。

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

\[out] Game OS に関する追加情報を提供するフラグのビット単位 OR の組み合わせです。このパラメーターは次のフラグをサポートします。

| Flag                                 | Value  | Description                                                  |
| ------------------------------------ | ------ | ------------------------------------------------------------ |
| XTF\_CACHED\_TITLE\_OS\_IS\_FALLBACK | 0x0001 | この Game OS がフォールバック OS であることを示します。フォールバック OS は削除も置き換えもできません。 |

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

\[out] Game OS の 4 部構成のバージョン番号です。

<a id="retvalSection" />

### Return value

型: HRESULT

成功した場合は `S_OK` を返します。それ以外の場合は、HRESULT エラー コードを返します。

<a id="remarksSection" />

## Remarks

この関数を使用して、現在実行中のタイトルの Game OS に関するバージョン情報を返します。現在実行中の Game OS がない場合はエラーが発生します。また、[XtfGetCachedTitleOSVersions](/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m) 関数を使用すると、コンソールにキャッシュされている他の Game OS バージョンに関するバージョン情報を返すことができます。プロビジョニングされた Game OS ファイルの管理に関する詳細については、[Application Management (xbapp.exe) (NDA topic)](/tools/tools-console/commandlinetools/xbapp) および [Provision (xbprovision.exe) (NDA topic)](/tools/tools-console/commandlinetools/xbprovision) を参照してください。

<a id="requirementsSection" />

## Requirements

**ヘッダー:** xtfapi.h

**ライブラリ:** XtfApi.lib

**サポートされているプラットフォーム:** Windows (XBOX コンソール ツール用)

<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)


## Related topics

- [FourPartVersion](/ja-jp/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s.md)
- [XtfStartTitleOSByVersion](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbyversion-xtfapi-xbox-windows-m.md)
- [XtfRemoveTitleOSFromCacheByVersion](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcachebyversion-xtfapi-xbox-windows-m.md)
- [XtfStartTitleOS](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfstarttitleos-xtfapi-xbox-windows-m.md)
- [XtfRemoveTitleOSFromCache](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcache-xtfapi-xbox-windows-m.md)
