title: Accessing 64 bit registry from 32 bit application
body: <p>I need to open a registry entry <code>"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{26A24AE4-039D-4CA4-87B4-2F86416024FF}"</code> in c++. It contains the java 64 bit application. The full path of that registry entry is <code>"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F86416024FF}"</code>.</p>
  
  <p>We can view this path through regedit. I use</p>
  
  <pre><code>returnStatus = RegOpenKeyEx(HKEY_LOCAL_MACHINE, 
      TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{26A24AE4-039D-4CA4-87B4-2F86416024FF}"),
      0, KEY_ALL_ACCESS, &amp;hKey)
  </code></pre>
  
  <p>for open the registry; But it returns error value (2).</p>
  
  <pre><code>returnStatus = RegOpenKeyEx(HKEY_LOCAL_MACHINE,
      TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall")...
  </code></pre>
  
  <p>returns a success result. What can i do?</p>