Hello Everyone, I am finding a strange behavior with a .Net module accessing registry using RegistryKey class. For eg I have written .Net module testcom.dll which access registry. This testcom.dll is used both by native 32 bit application and 64 bit application. My requirement is to get the value of a regkey (path being HKEY_LOCAL_MACHINE\SOFTWARE\Test\MyParameters and key name is Age). This "Age" key will be in 32 bit registry in 32 bit machines and 64 bit registry(Not WOW64) in 64 machines.
In a 64 bit machine, When a 32 bit application is using testcom.dll, the key "Age" is searched in WOW64 registry. When a 64 bit application is using testcom.dll, the key "Age" is searched in 64 bit registry.
My requirement is to read the key in 64 bit registry in 64 bit machines whatever application uses the testcom.dll. Has anyone come across this? Could anyone help me out?
Thanks in Advance, -Mani.