> ## 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-TW/reference/system/xsystem/structs/xsystemruntimeinfo.md)

傳回包含遊戲執行階段服務相關資訊的 [XSystemRuntimeInfo](https://docs.xbox.com/zh-TW/reference/system/xsystem/structs/xsystemruntimeinfo.md) 結構。

## 備註

可以在呼叫 [XGameRuntimeInitialize](https://docs.xbox.com/zh-TW/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize.md) 之前呼叫此函式。

## 需求

**標頭：** XSystem.h

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

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


## Related topics

- [XSystemRuntimeInfo](https://docs.xbox.com/zh-TW/reference/system/xsystem/structs/xsystemruntimeinfo.md)
- [XSystem (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xsystem/xsystem_members.md)
- [在 Unity 專案中使用 GDK API 的 C# 包裝函式](https://docs.xbox.com/zh-TW/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XSystemGetAnalyticsInfo](https://docs.xbox.com/zh-TW/reference/system/xsystem/functions/xsystemgetanalyticsinfo.md)
- [XVersion](https://docs.xbox.com/zh-TW/reference/system/xgameruntimetypes/structs/xversion.md)
