.netFramework4.0中对读取64位注册表做了支持,只需要一个RegistryView:
RegistryKey localMachine = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64);