title: Accessing 64-bit Registry in 32-bit application
body: <p><strong>Please do not mark this question as duplicate!</strong></p>
  
  <p>I'm searching for a solution in java - <strong>not C#</strong> - and used the WinRegistry class.</p>
  
  <p>I wrote a program that can readout a registry key. Now the problem: the java application is 32bit and I want to read the reg-keys from a windows 7 64bit-system. With this code windows will redirect my 32bit program to the 32bit section of the 64bit-registry (compare the real path with the comment in the code - Wow6432Node!).</p>
  
  <pre><code>// only access to "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run"
  value = WinRegistry.readString(WinRegistry.HKEY_LOCAL_MACHINE,
      "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", "Citrix Login Service");
  </code></pre>
  
  <p>I deleted the try-catch-block so you are able to focus the real problem more better ;).</p>