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

# XtfStartTitleOSByVersion

> XtfStartTitleOSByVersion

# XtfStartTitleOSByVersion

指定された [FourPartVersion](/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s) に一致する Game OS を本体のキャッシュから起動または再起動します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
HRESULT XtfStartTitleOSByVersion(
         PCWSTR address,
         FourPartVersion version
)  
```

<a id="parametersSection" />

### パラメーター

*address*<br />型: PCWSTR

\[in] 本体のアドレスです。

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

\[in] 起動する Game OS の 4 パートのバージョン情報です。

<a id="retvalSection" />

### 戻り値

型: HRESULT

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

<a id="remarksSection" />

## 解説

この関数を使用して、指定された `FourPartVersion` に一致する Game OS を本体のキャッシュから起動または再起動します。 本体にキャッシュされている各 Game OS の `FourPartVersion` を取得するには [XtfGetCachedTitleOSVersions](/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m) 関数を、現在実行中のタイトルの Game OS の `FourPartVersion` を取得するには [XtfGetTitleOSFourPartVersion](/reference/tools/xtf/xtfapi/functions/xtfgettitleosfourpartversion-xtfapi-xbox-windows-m) 関数を使用できます。

起動または再起動する Game OS の [FourPartVersion](/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s) がない場合は、代わりに [XtfStartTitleOS](/reference/tools/xtf/xtfapi/functions/xtfstarttitleos-xtfapi-xbox-windows-m) 関数を使用して、Game OS の GameOs.vxd ファイルの完全パスとファイル名など、別の識別子を指定して Game OS を起動または再起動できます。 指定した MicrosoftGame.config ファイルの内容で識別される Game OS を起動または再起動するには、[XtfStartTitleOSByGameConfig](/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbygameconfig-xtfapi-xbox-windows-m) 関数を使用することもできます。

必要な場合は、[XtfCacheTitleOS](/reference/tools/xtf/xtfapi/functions/xtfcachetitleos-xtfapi-xbox-windows-m) 関数を呼び出して、本体のキャッシュに Game OS を追加できます。 プロビジョニング済み Game OS ファイルの管理の詳細については、[アプリケーション管理 (xbapp.exe) (NDA トピック)](/tools/tools-console/commandlinetools/xbapp) および [プロビジョン (xbprovision.exe) (NDA トピック)](/tools/tools-console/commandlinetools/xbprovision) を参照してください。

<a id="requirementsSection" />

## 要件

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

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

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

<a id="seealsoSection" />

## 関連項目

[PC からのデプロイ実行 (NDA トピック)](/home/setup-install/concepts/deployment)<br />[XTF トランスポート エラー (NDA トピック)](/tools/tools-console/commandlinetools/xtf-transport-errors)<br />[その他の Xtf API](/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

- [XtfStartTitleOS](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfstarttitleos-xtfapi-xbox-windows-m.md)
- [XtfGetCachedTitleOSVersionsCallback](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversionscallback-xtfapi-xbox-windows-m.md)
- [FourPartVersion](/ja-jp/reference/tools/xtf/xtfapi/structs/fourpartversion-xtfapi-xbox-windows-s.md)
- [XtfStartTitleOSByGameConfig](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbygameconfig-xtfapi-xbox-windows-m.md)
- [XtfGetCachedTitleOSVersions](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m.md)
