2

I have app which retrieve applications from registry. In 32bits Windows it works correctly. But part of the systems are 64bits, and my app read only applications which are 32 bits.

Microsoft.Win32.RegistryKey regKey = Microsoft.Win32.Registry.LocalMachine;
            Microsoft.Win32.RegistryKey subKey1 =
                regKey.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall");

            string[] subKeyNames = subKey1.GetSubKeyNames();
            List<string> lst = new List<string>();

I don't have 64 bit Windows and I cannot check how registry looks on 64 bit machine.

Thanks

Robert
  • 2,571
  • 10
  • 63
  • 95
  • "I don't have 64 bit Windows and I cannot check how registry looks on 64 bit machine." --- you can install VMWare player or VirtualBox (both are free) and windows x64 (which has 30 days free trial) and see it yourself – zerkms Jan 29 '12 at 20:15

1 Answers1

2

This is because of registry redirection.

Specifically, there is a Wow6432Node that contains registry keys for 32-bit processes on a 64-bit OS (WOW64).

Community
  • 1
  • 1
ken2k
  • 48,145
  • 10
  • 116
  • 176