Skip to main content

XSystemGetAnalyticsInfo

Provides diagnostic information about the operating system and device on which the game is running.

Syntax

Parameters

None.

Return value

Type: XSystemAnalyticsInfo Returns an XSystemAnalyticsInfo structure that contains information about the current device.

Remarks

This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
The XSystemGetAnalyticsInfo function returns an XSystemAnalyticsInfo structure that contains diagnostic information about the current device. This information includes the versions of both the operating system in which the game is running and the operating system from which the game was launched, as well as the family and form of the device. The following example illustrates how to retrieve the version information for the operating system in which a game is running, by invoking XSystemGetAnalyticsInfo and concatenating the results returned in the osVersion member of XSystemAnalyticsInfo.

Requirements

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

Conceptual documentation

See also

XSystem
XSystemAnalyticsInfo
Last modified on August 20, 2026