Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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
const max_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

File

zig/system/windows.zig:53
53
const max_value_len = 2048