title: RegOpenKeyEx fails on HKEY_LOCAL_MACHINE
body: <p>Hi I'm trying to read a registry value that gives me the path to firefox.exe.
  This is stored under</p>
  
  <pre><code>HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox 3.0.10\bin
  </code></pre>
  
  <p>(the version number can be found somewhere else)</p>
  
  <p>But I cant seem to get RegOpenKeyEx to return ERROR_SUCCESS for anything under</p>
  
  <pre><code>HKEY_LOCAL_MACHINE
  </code></pre>
  
  <p>so this test fails:</p>
  
  <pre><code>if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,TEXT("\\SOFTWARE"),0,KEY_QUERY_VALUE,&amp;keyHandle) == ERROR_SUCCESS)
  </code></pre>
  
  <p>while this test passes:</p>
  
  <pre><code>if(RegOpenKeyEx(HKEY_CLASSES_ROOT,TEXT("\\Shell"),0,KEY_QUERY_VALUE,&amp;keyHandle) == ERROR_SUCCESS)
  </code></pre>