1

I'm currently trying to get the windows 10 Accent Color value from the registry.

I'm using the WinRegistry example found here, and can access most of the registry.

Unfortunately I'm getting null when trying to get values at : HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\DWM

I can read HKEY_CURRENT_USER\\Software\\Microsoft\\Windows without issue, but the DWM folder seems to be protected in some ways.

Code :

List<String> toto = new ArrayList<String>();
List<String> tata = new ArrayList<String>();

toto = WinRegistry.readStringSubKeys(WinRegistry.HKEY_CURRENT_USER,"Software\\Microsoft\\Windows");
tata = WinRegistry.readStringSubKeys(WinRegistry.HKEY_CURRENT_USER,"Software\\Microsoft\\Windows\\DWM");

Console :

 Windows folder content : [CurrentVersion, DWM, Shell, TabletPC, Windows Error Reporting, Winlogon]
DWM Content : []

Did anyone successfully get the values contained in DWM?

Parth Pandya
  • 1,050
  • 7
  • 15
  • 22
Quetho
  • 11
  • 3

0 Answers0