| ... | ... | @@ -250,10 +250,12 @@ pub const Os = struct { |
| 250 | 250 | win11_ga = 0x0A00000F, //aka win11_22h2 |
| 251 | 251 | win11_ge = 0x0A000010, //aka win11_23h2 |
| 252 | 252 | win11_dt = 0x0A000011, //aka win11_24h2 |
| 253 | win11_br = 0x0A000012, //aka win11_25h2 |
| 254 | win11_kr = 0x0A000013, //aka win11_26h1 |
| 253 | 255 | _, |
| 254 | 256 | |
| 255 | 257 | /// Latest Windows version that the Zig Standard Library is aware of |
| 256 | | pub const latest = WindowsVersion.win11_dt; |
| 258 | pub const latest = WindowsVersion.win11_kr; |
| 257 | 259 | |
| 258 | 260 | /// Compared against build numbers reported by the runtime to distinguish win10 versions, |
| 259 | 261 | /// where 0x0A000000 + index corresponds to the WindowsVersion u32 value. |
| ... | ... | @@ -276,6 +278,8 @@ pub const Os = struct { |
| 276 | 278 | 22621, //win11_ga aka win11_22h2 |
| 277 | 279 | 22631, //win11_ge aka win11_23h2 |
| 278 | 280 | 26100, //win11_dt aka win11_24h2 |
| 281 | 26200, //win11_br aka win11_25h2 |
| 282 | 28000, //win11_kr aka win11_26h1 |
| 279 | 283 | }; |
| 280 | 284 | |
| 281 | 285 | /// Returns whether the first version `ver` is newer (greater) than or equal to the second version `ver`. |