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

# XtfStartTitleOSByGameConfig

> XtfStartTitleOSByGameConfig

# XtfStartTitleOSByGameConfig

文字列としてメモリに格納された MicrosoftGame.config ファイルの内容に基づいて、Game OS を起動または再起動します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
HRESULT XtfStartTitleOSByGameConfig(
         PCWSTR address,
         UINT32 flags,
         PCWSTR gameconfigContents
)  
```

<a id="parametersSection" />

### パラメーター

*address*\
型: PCWSTR

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

*flags*\
型: UINT32

\[in] 現在は使用されていませんが、将来の動作変更のために予約されています。

*gameconfigContents*\
型: PCWSTR

\[in] MicrosoftGame.config ファイルの内容です。

<a id="retvalSection" />

### 戻り値

型: HRESULT

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

<a id="remarksSection" />

## 解説

この関数を使用して、文字列としてメモリに格納された MicrosoftGame.config ファイルの内容に基づいて、Game OS を起動または再起動します。 `address` または `gameconfigContents` の値が指定されていない場合、エラーが発生します。

MicrosoftGame.config ファイルの内容の詳細については、[MicrosoftGame.config の概要](/build/core-features/common/game-config/MicrosoftGameConfig-Overview) を参照してください。

<a id="requirements" />

## 要件

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

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

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

<a id="seealsoSection" />

## 関連項目

[XTF トランスポート エラー (NDA トピック)](/tools/tools-console/commandlinetools/xtf-transport-errors)\
[その他の Xtf API](/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

- [XtfStartTitleOS](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfstarttitleos-xtfapi-xbox-windows-m.md)
- [XtfStartTitleOSByVersion](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbyversion-xtfapi-xbox-windows-m.md)
- [XtfCacheTitleOS](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfcachetitleos-xtfapi-xbox-windows-m.md)
- [XtfRemoveTitleOSFromCache](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcache-xtfapi-xbox-windows-m.md)
- [XtfGetCachedTitleOSVersionsCallback](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversionscallback-xtfapi-xbox-windows-m.md)
