Accessing the Windows registry using .NET?
问题 I am finding a strange behavior with a .NET module accessing the Windows Registry using the RegistryKey class. For example, I have written a .NET module, testcom.dll, which access the registry. This testcom.dll file is used both by a native 32-bit application and a 64-bit application. My requirement is to get the value of a regkey (path being HKEY_LOCAL_MACHINE\SOFTWARE\Test\MyParameters and the key name is Age ). This "Age" key will be in 32-bit registry on 32-bit machines and 64-bit