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

Representa información sobre el dispositivo actual.

## Sintaxis

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

### Miembros

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

La versión del sistema operativo en el que se está ejecutando el juego. Para los dispositivos XBOX, este valor representa la versión del sistema operativo del título. Para los dispositivos de escritorio, este valor representa la versión del sistema operativo del sistema.

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

La versión del sistema operativo desde el que se inició el juego. Para los dispositivos XBOX, este valor representa la versión del sistema operativo del sistema. Para los dispositivos de escritorio, este valor suele ser el mismo que el valor de *osVersion*.

*family*\
Tipo: char\[64]

La descripción general de la familia de dispositivos. Ejemplos: "XBOX" y "Windows".

*form*\
Tipo: char\[64]

El tipo específico de hardware de la familia de dispositivos. Ejemplo: "XBOX One X DevKit".

## Comentarios

Esta estructura se devuelve cuando se llama a [XSystemGetAnalyticsInfo](/reference/system/xsystem/functions/xsystemgetanalyticsinfo). La estructura proporciona las versiones del sistema operativo del dispositivo actual, la familia de dispositivos y la forma del dispositivo.

El siguiente ejemplo ilustra cómo recuperar la información de versión del sistema operativo en el que se está ejecutando un juego, invocando **XSystemGetAnalyticsInfo** y concatenando los resultados devueltos en el miembro *osVersion* de **XSystemAnalyticsInfo**.

```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);

}
```

## Requisitos

**Encabezado:** XSystem.h

**Plataformas compatibles:** Windows, consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

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


## Related topics

- [XSystemGetAnalyticsInfo](/es/reference/system/xsystem/functions/xsystemgetanalyticsinfo.md)
- [XSystem](/es/reference/system/xsystem/xsystem_members.md)
- [XVersion](/es/reference/system/xgameruntimetypes/structs/xversion.md)
- [Inicio rápido de los informes](/es/services/playfab/data-analytics/learn-data/reports/quickstart.md)
- [Data Connections - Información general](/es/services/playfab/data-analytics/export-data/data-connection-overview.md)
