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

# XSystemAnalyticsInfo

> XSystemAnalyticsInfo

# XSystemAnalyticsInfo

현재 디바이스에 대한 정보를 나타냅니다.

## 구문

```cpp theme={null}
typedef struct XSystemAnalyticsInfo {  
    XVersion osVersion;  
    XVersion hostingOsVersion;  
    char family[64];  
    char form[64];  
} XSystemAnalyticsInfo  
```

### 멤버

*osVersion*\
형식: [XVersion](/reference/system/xgameruntimetypes/structs/xversion)

게임이 실행되는 운영 체제의 버전입니다. XBOX 디바이스의 경우 이 값은 타이틀 OS의 버전을 나타냅니다. 데스크톱 디바이스의 경우 이 값은 시스템 OS의 버전을 나타냅니다.

*hostingOsVersion*\
형식: [XVersion](/reference/system/xgameruntimetypes/structs/xversion)

게임이 실행된 원본 운영 체제의 버전입니다. XBOX 디바이스의 경우 이 값은 시스템 OS의 버전을 나타냅니다. 데스크톱 디바이스의 경우 이 값은 일반적으로 *osVersion* 값과 동일합니다.

*family*\
형식: char\[64]

디바이스 제품군에 대한 일반적인 설명입니다. 예: "XBOX" 및 "Windows".

*form*\
형식: char\[64]

디바이스 제품군의 특정 하드웨어 유형입니다. 예: "XBOX One X DevKit".

## 설명

이 구조체는 [XSystemGetAnalyticsInfo](/reference/system/xsystem/functions/xsystemgetanalyticsinfo)가 호출될 때 반환됩니다. 이 구조체는 현재 디바이스의 운영 체제 버전, 디바이스 제품군, 디바이스 형식을 제공합니다.

다음 예제는 **XSystemGetAnalyticsInfo**를 호출하여 **XSystemAnalyticsInfo**의 *osVersion* 멤버에 반환된 결과를 연결함으로써 게임이 실행되는 운영 체제의 버전 정보를 검색하는 방법을 보여 줍니다.

```cpp theme={null}
// Get the version of the operating system in which the game is running.
std::string Game::GetGameOSVersion()
{
    // Call XSystemGetAnalyticsInfo()
    XSystemAnalyticsInfo info = XSystemGetAnalyticsInfo();

    // Return a formatted string from the osVersion member of XSystemAnalyticsInfo.
    return std::to_string(info.osVersion.major) + "." +
        std::to_string(info.osVersion.minor) + "." +
        std::to_string(info.osVersion.build) + "." +
        std::to_string(info.osVersion.revision);

}
```

## 요구 사항

**헤더:** XSystem.h

**지원 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 함께 보기

[XSystem](/reference/system/xsystem/xsystem_members)\
[XSystemGetAnalyticsInfo](/reference/system/xsystem/functions/xsystemgetanalyticsinfo)\
[XVersion](/reference/system/xgameruntimetypes/structs/xversion)


## Related topics

- [XSystemGetAnalyticsInfo](/ko/reference/system/xsystem/functions/xsystemgetanalyticsinfo.md)
- [XSystem](/ko/reference/system/xsystem/xsystem_members.md)
- [XVersion](/ko/reference/system/xgameruntimetypes/structs/xversion.md)
- [XSystemRuntimeInfo](/ko/reference/system/xsystem/structs/xsystemruntimeinfo.md)
- [XSystemGetRuntimeInfo](/ko/reference/system/xsystem/functions/xsystemgetruntimeinfo.md)
