title: Registry on 32-bit and 64-bit Windows
body: <p>I have a problem with the registry in Windows x64. I need to get a value added through file.reg:</p>
  
  <pre><code>REGEDIT4
  
  [HKEY_LOCAL_MACHINE\SOFTWARE\My Soft]
  "Str1" = "Assa"
  "Str2" = "142Z5214GGAAVGA"
  </code></pre>
  
  <p>In the code, I do:</p>
  
  <pre><code>RegCreateKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\My Soft", 0,NULL,0,    KEY_READ | KEY_WOW64_64KEY,NULL,&amp;hKey,&amp;dwDis))
  /*
  Get the value by RegQueryValueEx... 
  */
  </code></pre>
  
  <p>In a 32-bit Windows is good. In a 64-bit value is empty. </p>
  
  <p>PS:
  Sorry for my English by Google Translate ^_^</p>