This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Private Constant
max_value_len
Private Constant
std.zig.system.windows.max_value_len
constmax_value_len = 2048
Technically, a registry value can be as long as 1MB. However, MS recommends storing values larger than 2048 bytes in a file rather than directly in the registry, and since we are only accessing a system hive \Registry\Machine, we stick to MS guidelines. https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry-element-size-limits
Technically, a registry value can be as long as 1MB. However, MS recommends storing values larger than 2048 bytes in a file rather than directly in the registry, and since we are only accessing a system hive \Registry\Machine, we stick to MS guidelines. https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry-element-size-limits