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

# XVersion

> 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](/reference/system/xsystem/structs/xsystemanalyticsinfo) and [XSystemRuntimeInfo](/reference/system/xsystem/structs/xsystemruntimeinfo)
structures use **XVersion** to represent versions for operating system and the gaming runtime. In
addition, the [XPackageDetails](/reference/system/xpackage/structs/xpackagedetails) 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](/reference/system/xpackage/structs/xpackagedetails)\
[XSystemAnalyticsInfo](/reference/system/xsystem/structs/xsystemanalyticsinfo)\
[XSystemRuntimeInfo](/reference/system/xsystem/structs/xsystemruntimeinfo)
[XGameRuntimeTypes](/reference/system/xgameruntimetypes/xgameruntimetypes_members)


## Related topics

- [XSystemRuntimeInfo](/reference/system/xsystem/structs/xsystemruntimeinfo.md)
- [XSystemAnalyticsInfo](/reference/system/xsystem/structs/xsystemanalyticsinfo.md)
- [XGameRuntimeTypes](/reference/system/xgameruntimetypes/xgameruntimetypes_members.md)
- [XGameStreamingGetTouchBundleVersion](/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversion.md)
- [XPackageDetails](/reference/system/xpackage/structs/xpackagedetails.md)
