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

# XSystemGetRuntimeInfo

> XSystemGetRuntimeInfo

# XSystemGetRuntimeInfo

提供有关游戏运行时服务的当前版本和可用版本的信息。

## 语法

```cpp theme={null}
XSystemRuntimeInfo XSystemGetRuntimeInfo(  
);
```

### 参数

无。

### 返回值

类型：[XSystemRuntimeInfo](https://docs.xbox.com/zh-CN/reference/system/xsystem/structs/xsystemruntimeinfo.md)

返回一个 [XSystemRuntimeInfo](https://docs.xbox.com/zh-CN/reference/system/xsystem/structs/xsystemruntimeinfo.md) 结构，其中包含有关游戏运行时服务的信息。

## 备注

可以在调用 [XGameRuntimeInitialize](https://docs.xbox.com/zh-CN/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize.md) 之前调用此函数。

## 要求

**头文件：** XSystem.h

**库：** xgameruntime.lib

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[XSystem](https://docs.xbox.com/zh-CN/reference/system/xsystem/xsystem_members.md)\
[XSystemRuntimeInfo](https://docs.xbox.com/zh-CN/reference/system/xsystem/structs/xsystemruntimeinfo.md)


## Related topics

- [XSystemRuntimeInfo](https://docs.xbox.com/zh-CN/reference/system/xsystem/structs/xsystemruntimeinfo.md)
- [XSystem（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xsystem/xsystem_members.md)
- [在 Unity 项目中使用 GDK API 的 C# 包装器](https://docs.xbox.com/zh-CN/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XSystemGetAnalyticsInfo](https://docs.xbox.com/zh-CN/reference/system/xsystem/functions/xsystemgetanalyticsinfo.md)
- [XVersion](https://docs.xbox.com/zh-CN/reference/system/xgameruntimetypes/structs/xversion.md)
