1RegistryKey Key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\...\...\", false); 2 3if (Key == null) 4{ 5 // not found 6} 7else 8{ 9 String value = Key.GetValue("KeyName").ToString(); 10}