From 4b4df235717627f60444c5cfd15d03d9cca5e56b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kr=C3=BCgler?= Date: Sat, 10 Apr 2021 20:58:01 +0200 Subject: [PATCH] HKEY_CURRENT_USER_LOCAL_SETTINGS should be supported Starting with Windows 7, Windows added the additional HKEY constant HKEY_CURRENT_USER_LOCAL_SETTINGS (see predefined-key) whose underlying integral value has the value 0x80000007 (Source: Visual Studio 2017, header . This constant is currently missing in the existing set of HKEY_* constants in com.sun.jna.platform.win32.WinReg. This adds the new static field HKEY_CURRENT_USER_LOCAL_SETTINGS to the set of the other HKEY constants in WinReg. --- CHANGES.md | 1 + contrib/platform/src/com/sun/jna/platform/win32/WinReg.java | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 458b632d9f..affdc5c17d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,6 +7,7 @@ Next Release (5.9.0) Features -------- +* [#1336](https://github.com/java-native-access/jna/pull/1336): Add `HKEY_CURRENT_USER_LOCAL_SETTINGS` to `c.s.j.p.win32.WinReg` - [@Dani-Hub](https://github.com/Dani-Hub). Bug Fixes --------- diff --git a/contrib/platform/src/com/sun/jna/platform/win32/WinReg.java b/contrib/platform/src/com/sun/jna/platform/win32/WinReg.java index 5dc2da513b..f0b6b004dc 100644 --- a/contrib/platform/src/com/sun/jna/platform/win32/WinReg.java +++ b/contrib/platform/src/com/sun/jna/platform/win32/WinReg.java @@ -78,4 +78,5 @@ public HKEY getValue() { HKEY HKEY_PERFORMANCE_NLSTEXT = new HKEY(0x80000060); HKEY HKEY_CURRENT_CONFIG = new HKEY(0x80000005); HKEY HKEY_DYN_DATA = new HKEY(0x80000006); + HKEY HKEY_CURRENT_USER_LOCAL_SETTINGS = new HKEY(0x80000007); }