Skip to content

WinReg v12.0.0 C++20/C++17 Header-only Stable Release

Choose a tag to compare

@GiovanniDicanio GiovanniDicanio released this 20 Oct 23:58
· 12 commits to master since this release
4f9ee86

Improvements in v12.0.0

  • Code can be compiled in both C++17 and C++20 modes.
  • The library now uses the RegQueryValueEx() API instead of RegGetValue(); this makes it
    compatible with "legacy" operating systems, like Windows XP.
  • The library is now more robust against malformed registry data. Instead of silently
    returning wrong or truncated values, the getters now detect these cases and report them
    as errors: for example, a REG_DWORD value stored with less than 4 bytes, or UTF-16 strings
    stored with an odd number of bytes (which can't be valid UTF-16).
  • std::move() is used in more places to enable move semantics and avoid deep-copies.