Based on NTDDI version constants from https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt

Fields

nt4 = 67108864,
win2k = 83886080,
xp = 83951616,
ws2003 = 84017152,
vista = 100663296,
win7 = 100728832,
win8 = 100794368,
win8_1 = 100859904,
win10 = 167772160,
win10_th2 = 167772161,
win10_rs1 = 167772162,
win10_rs2 = 167772163,
win10_rs3 = 167772164,
win10_rs4 = 167772165,
win10_rs5 = 167772166,
win10_19h1 = 167772167,
win10_vb = 167772168,
win10_mn = 167772169,
win10_fe = 167772170,

Types

Functions

fn format(self: WindowsVersion, comptime fmt: []const u8, _: std.fmt.FormatOptions, out_stream: anytype) !void

This function is defined to serialize a Zig source code representation of this …

This function is defined to serialize a Zig source code representation of this type, that, when parsed, will deserialize into the same data.

inline fn isAtLeast(self: WindowsVersion, ver: WindowsVersion) bool

Returns whether the first version self is newer (greater) than or equal to the…

Returns whether the first version self is newer (greater) than or equal to the second version ver.

Values

known_win10_build_numbers
[11]u32

Compared against build numbers reported by the runtime to distinguish win10 vers…

latest
undefined

Latest Windows version that the Zig Standard Library is aware of