> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameRuntimeInit (API の内容)

> XGameRuntimeInit

# XGameRuntimeInit

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

## Functions

| Function | Description |
| - | - |
| [XGameRuntimeInitialize](https://docs.xbox.com/ja-jp/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize.md) | Gaming Runtime を初期化します。 |
| [XGameRuntimeUninitialize](https://docs.xbox.com/ja-jp/reference/system/xgameruntimeinit/functions/xgameruntimeuninitialize.md) | Gaming Runtime を初期化解除します。 |

## Error Codes

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

| 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](https://docs.xbox.com/ja-jp/reference/system/gc-reference-system-toc.md)


## Related topics

- [XGameRuntimeTypes (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameruntimetypes/xgameruntimetypes_members.md)
- [XGameRuntimeFeature (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameruntimefeature/xgameruntimefeature_members.md)
- [XGameUI (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameui/xgameui_members.md)
- [XGame (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgame/xgame_members.md)
- [XGameSave (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgamesave/xgamesave_members.md)
