title: VB6 Registry Key Value Problem
body: <p>Within VB6 I have used the following code to add to Registry,</p>
  
  <pre><code>Dim x As Object
  x = CreateObject("WScript.Shell")
  x.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell", "MADNESS"
  </code></pre>
  
  <p>It creates a key, however in the following location:</p>
  
  <pre><code>HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell
  </code></pre>
  
  <p>Instead of:</p>
  
  <pre><code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  </code></pre>
  
  <p>Any help is appreciated.</p>