Closed rustdesk closed 3 years ago
This should work:
use winreg::RegKey;
use winreg::enums::*;
let hklm = RegKey::predef(HKEY_LOCAL_MACHINE);
let (key, _disp) = hklm.create_subkey_with_flags("Software\\ACME", KEY_ALL_ACCESS | KEY_WOW64_64KEY)?;
// ^^^^^^^^^^^^^^^
See https://stackoverflow.com/a/12796797 for details
https://stackoverflow.com/questions/11808462/avoid-registry-wow6432node-redirection