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

# XGameRuntimeInit

> XGameRuntimeInit

# XGameRuntimeInit

XGameRuntimeInit API のリファレンス資料。

## Functions

| Function                                                                                          | Description               |
| ------------------------------------------------------------------------------------------------- | ------------------------- |
| [XGameRuntimeInitialize](/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize)     | Gaming Runtime を初期化します。   |
| [XGameRuntimeUninitialize](/reference/system/xgameruntimeinit/functions/xgameruntimeuninitialize) | Gaming Runtime を初期化解除します。 |

## Error Codes

次のエラー コードは、XGameRuntime API によって返される可能性があります。完全な一覧については、[エラー コード](/reference/errorcodes)を参照してください。

| Code                                         | Value      | Description                                                  |
| -------------------------------------------- | ---------- | ------------------------------------------------------------ |
| E\_GAMERUNTIME\_NOT\_INITIALIZED             | 0x89240100 | ゲーム ランタイムが初期化されていません。                                        |
| E\_GAMERUNTIME\_DLL\_NOT\_FOUND              | 0x89240101 | ゲーム ランタイム DLL が見つかりませんでした。                                   |
| E\_GAMERUNTIME\_VERSION\_MISMATCH            | 0x89240102 | ゲーム ランタイム DLL がこのバージョンの GDK をサポートしていません。                     |
| E\_GAMERUNTIME\_WINDOW\_NOT\_FOREGROUND      | 0x89240103 | この操作にはアプリケーション ウィンドウがフォアグラウンドにある必要があります。                     |
| E\_GAMERUNTIME\_SUSPENDED                    | 0x89240104 | ゲーム ランタイムが中断状態です。                                            |
| E\_GAMERUNTIME\_UNINITIALIZE\_ACTIVEOBJECTS  | 0x89240105 | XGameRuntimeUninitialize の時点でゲーム ランタイムにアクティブなオブジェクトがあります。    |
| E\_GAMERUNTIME\_MULTIPLAYER\_NOT\_CONFIGURED | 0x89240106 | このタイトルのこのユーザーに対してマルチプレイヤー アクティビティがサービス上に設定されていません。           |
| E\_GAMERUNTIME\_OPTIONS\_MISMATCH            | 0x89240109 | ランタイムは既に別のオプションのセットで初期化されています。新しいオプションで再初期化する前に、初期化解除してください。 |
| E\_GAMERUNTIME\_OPTIONS\_NOT\_SUPPORTED      | 0x8924010A | 渡されたオプションはゲームのパッケージと互換性がありません。ゲーム構成情報はパッケージと一致する必要があります。     |
| E\_GAMERUNTIME\_GAMECONFIG\_BAD\_FORMAT      | 0x8924010B | Initialize に渡されたゲーム構成を解析できません。                               |
| E\_GAMERUNTIME\_INVALID\_HANDLE              | 0x8924010C | ハンドルはランタイムの初期化をまたいで使用することはできません。                             |

## Conceptual documentation

* [Using C# wrappers for GDK APIs in your Unity project](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/get-started-with-unity-pc/features/gdk-unity-api-wrappers)

## See also

[System API reference](/reference/system/gc-reference-system-toc)


## Related topics

- [XGameRuntimeInitialize](/ja-jp/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize.md)
- [XGameRuntimeInitializeWithOptions](/ja-jp/reference/system/xgameruntimeinit/functions/xgameruntimeinitializewithoptions.md)
- [XGameRuntimeUninitialize](/ja-jp/reference/system/xgameruntimeinit/functions/xgameruntimeuninitialize.md)
- [XGameRuntimeOptions](/ja-jp/reference/system/xgameruntimeinit/Structures/xgameruntimeoptions.md)
- [XGameRuntimeGameConfigSource](/ja-jp/reference/system/xgameruntimeinit/Enumerations/xgameruntimegameconfigsource.md)
