| ... | ... | @@ -231,10 +231,16 @@ pub const Os = struct { |
| 231 | 231 | win10_vb = 0x0A000008, //aka win10_19h2 |
| 232 | 232 | win10_mn = 0x0A000009, //aka win10_20h1 |
| 233 | 233 | win10_fe = 0x0A00000A, //aka win10_20h2 |
| 234 | win10_co = 0x0A00000B, //aka win10_21h1 |
| 235 | win10_ni = 0x0A00000C, //aka win10_21h2 |
| 236 | win10_cu = 0x0A00000D, //aka win10_22h2 |
| 237 | win11_zn = 0x0A00000E, //aka win11_21h2 |
| 238 | win11_ga = 0x0A00000F, //aka win11_22h2 |
| 239 | win11_ge = 0x0A000010, //aka win11_23h2 |
| 234 | 240 | _, |
| 235 | 241 | |
| 236 | 242 | /// Latest Windows version that the Zig Standard Library is aware of |
| 237 | | pub const latest = WindowsVersion.win10_fe; |
| 243 | pub const latest = WindowsVersion.win11_ge; |
| 238 | 244 | |
| 239 | 245 | /// Compared against build numbers reported by the runtime to distinguish win10 versions, |
| 240 | 246 | /// where 0x0A000000 + index corresponds to the WindowsVersion u32 value. |
| ... | ... | @@ -250,6 +256,12 @@ pub const Os = struct { |
| 250 | 256 | 18363, //win10_vb aka win10_19h2 |
| 251 | 257 | 19041, //win10_mn aka win10_20h1 |
| 252 | 258 | 19042, //win10_fe aka win10_20h2 |
| 259 | 19043, //win10_co aka win10_21h1 |
| 260 | 19044, //win10_ni aka win10_21h2 |
| 261 | 19045, //win10_cu aka win10_22h2 |
| 262 | 22000, //win11_zn aka win11_21h2 |
| 263 | 22621, //win11_ga aka win11_22h2 |
| 264 | 22631, //win11_ge aka win11_23h2 |
| 253 | 265 | }; |
| 254 | 266 | |
| 255 | 267 | /// Returns whether the first version `ver` is newer (greater) than or equal to the second version `ver`. |