Request from the team: Registry class (introduced in jdk8 to replace buggy RegKey class and direct WinAPI registry functions) does not contain usage examples. Also there are some minor issue in the class which should be fixed: 1) deleteKeyTree() method need a parameter to specify RedirectMode in the current design Registry::LocaleMachine.deleteKeyTree(_T("SOFTWARE\\JavaSoft\\Java Update")) deletes the key using the default RedirectMode 2) Registry objects need to keep RedirectMode value and open subkeys using it Currently Registry reg1(Registry::LocalMachine, _T("Software"), Registry::ReadOnly, Registry::Wow64_32); Registry reg2(reg1, _T("JavaSoft"), Registry::ReadOnly); opens reg2 with the default RedirectMode but it should use the parent RedirectMode (so in the example reg2 should be opened in Wow64_32)
|