Skip to main content

XGameRuntimeUninitialize

Uninitializes the Gaming Runtime.

Syntax

Parameters

None.

Return value

Type: void

Remarks

To use the Gaming Runtime features in your game, first initialize the Gaming Runtime by invoking the XGameRuntimeInitialize function. When your game is done using the Gaming Runtime and is ready to exit, uninitialize the Gaming Runtime by invoking the XGameRuntimeUninitialize function. Invoke the XGameRuntimeUninitialize function as late as possible but before your game exits, typically within the entry-point function for your game. The following example demonstrates how to use the XGameRuntimeInitialize and XGameRuntimeUninitialize functions within the entry-point function of a game that is based on the Direct3D 12 Desktop Game template in Visual Studio. The XGameRuntimeInitialize function is invoked before the Game object is instantiated and registered, and the XGameRuntimeUninitialize function is invoked after the Game object is reset but before the entry-point function returns.

Requirements

Header: XGameRuntimeInit.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

Conceptual documentation

See also

XGameRuntimeInitialize XGameRuntimeInit Developing new titles using Gaming Runtime
Last modified on August 20, 2026