Skip to content

Commit b21196e

Browse files
authored
HKEY_CURRENT_USER_LOCAL_SETTINGS should be supported (#1336)
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 <winreg.h>. 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.
1 parent a0641dd commit b21196e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Next Release (5.9.0)
77

88
Features
99
--------
10+
* [#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).
1011

1112
Bug Fixes
1213
---------

contrib/platform/src/com/sun/jna/platform/win32/WinReg.java

+1
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,5 @@ public HKEY getValue() {
7878
HKEY HKEY_PERFORMANCE_NLSTEXT = new HKEY(0x80000060);
7979
HKEY HKEY_CURRENT_CONFIG = new HKEY(0x80000005);
8080
HKEY HKEY_DYN_DATA = new HKEY(0x80000006);
81+
HKEY HKEY_CURRENT_USER_LOCAL_SETTINGS = new HKEY(0x80000007);
8182
}

0 commit comments

Comments
 (0)