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

# XVersion

> XVersion

Represents a four-part version number.

## Syntax

```cpp theme={null}
typedef struct XVersion {  
    union
    {
        struct
        {
            uint16_t major;  
            uint16_t minor;  
            uint16_t build;  
            uint16_t revision;
        };
        uint64_t Value;
    };
} XVersion  
```

### Members

*major*\
Type: uint16\_t

The major version number.

*minor*\
Type: uint16\_t

The minor version number.

*build*\
Type: uint16\_t

The build number.

*revision*\
Type: uint16\_t

The revision number.

*Value*
Type: uint64\_t

64-bit packed integer that represents the 4-part version.

## Remarks

Gaming Runtime features use the **XVersion** structure to represent the version information. The [XSystemAnalyticsInfo](https://docs.xbox.com/reference/system/xsystem/structs/xsystemanalyticsinfo.md) and [XSystemRuntimeInfo](https://docs.xbox.com/reference/system/xsystem/structs/xsystemruntimeinfo.md)
structures use **XVersion** to represent versions for operating system and the gaming runtime. In
addition, the [XPackageDetails](https://docs.xbox.com/reference/system/xpackage/structs/xpackagedetails.md) structure uses **XVersion** to represent a
package's version.

## Requirements

**Header:** XGameRuntimeTypes.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XPackageDetails](https://docs.xbox.com/reference/system/xpackage/structs/xpackagedetails.md)\
[XSystemAnalyticsInfo](https://docs.xbox.com/reference/system/xsystem/structs/xsystemanalyticsinfo.md)\
[XSystemRuntimeInfo](https://docs.xbox.com/reference/system/xsystem/structs/xsystemruntimeinfo.md)
[XGameRuntimeTypes](https://docs.xbox.com/reference/system/xgameruntimetypes/xgameruntimetypes_members.md)


## Related topics

- [XSystemRuntimeInfo](https://docs.xbox.com/reference/system/xsystem/structs/xsystemruntimeinfo.md)
- [XSystemAnalyticsInfo](https://docs.xbox.com/reference/system/xsystem/structs/xsystemanalyticsinfo.md)
- [XGameRuntimeTypes (API contents)](https://docs.xbox.com/reference/system/xgameruntimetypes/xgameruntimetypes_members.md)
- [XGameStreamingGetTouchBundleVersion](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversion.md)
- [XPackageDetails](https://docs.xbox.com/reference/system/xpackage/structs/xpackagedetails.md)
