I try to access a specific registry key that i know exist. I use this way:
RegistryKey rk = Registry.LocalMachine;
RegistryKey sk1 = rk.OpenSubKey(KeyName,false);
if i replace ‘KeyName’ with @”Software\Microsoft\Windows\CurrentVersion\Run”, for example, it works fine.
if i try any other path that i copy pasted from regedit for exmple @”SOFTWARE\ATI Technologies\Install\South Bridge\ATI_AHCI_RAID” it return null.
I’m workiung on win7 64-bit with an x86 program
In Windows 64-bit (Windows 2003+, XP and later 64-bit) there is a transparent registry redirection happening to provide separate logical views for 32-bit and 64-bit registry calls.
Read the link below for more information; it is important information to know.
MSDN Registry Redirector