title: how to create a key in HKLM using TRegistry
body: <p>I am trying to create a key in HKLM but it creates under HKLM\SOFTWARE\Wow6432Node! 
  as C++ builder 2010 produces 32 bit exe and it saves under 32 app section<br>
  running windows 7 x64</p>
  
  <p>How to use TRegistry to do it by using flags or....</p>
  
  <p>in addition <code>OpenKeyEx</code> is'nt there :(</p>
  
  <p>here is my code</p>
  
  <pre class="lang-c prettyprint-override"><code>TRegistry * reg=new TRegistry(KEY_WRITE);
  try 
  {
    reg-&gt;RootKey=HKEY_LOCAL_MACHINE;
    if (!reg-&gt;OpenKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\UserList",0)) 
    {
      //reg-&gt;CreateKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\UserList");
    }
    //reg-&gt;Access=KEY_WRITE;
    bool ores=reg-&gt;OpenKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\UserList",true);
    reg-&gt;WriteString("ouser","0");
    reg-&gt;CloseKey();
  } 
  catch (...) 
  {
    delete reg;
  }
  </code></pre>