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

Material de referencia para las API de XGameRuntimeInit.

## Funciones

| Función                                                                                           | Descripción                                |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| [XGameRuntimeInitialize](/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize)     | Inicializa Gaming Runtime.                 |
| [XGameRuntimeUninitialize](/reference/system/xgameruntimeinit/functions/xgameruntimeuninitialize) | Anula la inicialización de Gaming Runtime. |

## Códigos de error

Las API de XGameRuntime pueden devolver los siguientes códigos de error. Para obtener una lista completa, consulte [Códigos de error](/reference/errorcodes).

| Código                                       | Valor      | Descripción                                                                                                                                                |
| -------------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| E\_GAMERUNTIME\_NOT\_INITIALIZED             | 0x89240100 | El entorno de ejecución del juego no está inicializado.                                                                                                    |
| E\_GAMERUNTIME\_DLL\_NOT\_FOUND              | 0x89240101 | No se encontró el archivo DLL del entorno de ejecución del juego.                                                                                          |
| E\_GAMERUNTIME\_VERSION\_MISMATCH            | 0x89240102 | El archivo DLL del entorno de ejecución del juego no es compatible con esta versión del GDK.                                                               |
| E\_GAMERUNTIME\_WINDOW\_NOT\_FOREGROUND      | 0x89240103 | La operación requiere que la ventana de la aplicación esté en primer plano.                                                                                |
| E\_GAMERUNTIME\_SUSPENDED                    | 0x89240104 | El entorno de ejecución del juego está en estado suspendido.                                                                                               |
| E\_GAMERUNTIME\_UNINITIALIZE\_ACTIVEOBJECTS  | 0x89240105 | El entorno de ejecución del juego tiene objetos activos en XGameRuntimeUninitialize.                                                                       |
| E\_GAMERUNTIME\_MULTIPLAYER\_NOT\_CONFIGURED | 0x89240106 | No hay ninguna actividad multijugador establecida en el servicio para este usuario en este título.                                                         |
| E\_GAMERUNTIME\_OPTIONS\_MISMATCH            | 0x89240109 | El entorno de ejecución ya se inicializó con un conjunto de opciones diferente. Anule la inicialización antes de volver a inicializar con nuevas opciones. |
| E\_GAMERUNTIME\_OPTIONS\_NOT\_SUPPORTED      | 0x8924010A | Las opciones pasadas no son compatibles con el paquete del juego. La información de la configuración del juego debe coincidir con el paquete.              |
| E\_GAMERUNTIME\_GAMECONFIG\_BAD\_FORMAT      | 0x8924010B | No se puede analizar la configuración de juego pasada a Initialize.                                                                                        |
| E\_GAMERUNTIME\_INVALID\_HANDLE              | 0x8924010C | Los identificadores no son válidos para su uso entre distintas inicializaciones del entorno de ejecución.                                                  |

## Documentación conceptual

* [Uso de contenedores de C# para las API de GDK en su proyecto de Unity](/build/gdk-and-engines/unity/unity-api-wrappers)

## Consulte también

[Referencia de API del sistema](/reference/system/gc-reference-system-toc)


## Related topics

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