title: Impersonation to get user HKEY_CURRENT_USER does not work?
body: <p>I am attempting to Impersonate an administrator account from a LocalSystem Service in order to get data from administrators HKEY CURRENT USER registry - in order to impersonate I am using the codeproject code found at the following site written by Uwe Keim: <a href="http://www.codeproject.com/KB/cs/zetaimpersonator.aspx?fid=171054&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;fr=1#xx0xx" rel="nofollow noreferrer">Impersonator</a></p>
  
  <p>My  source code is as follows:</p>
  
  <pre><code>using (new Impersonator("user", ".", "pass"))
  {
      RegistryKey rk = Registry.CurrentUser.OpenSubKey("Software\\CompanyName");
      string sValue = rk.GetValue("Value", "").ToString();
      rk2.Close();
  }
  </code></pre>
  
  <p>My expectation was that sValue would be from the user/pass account (as I am impersonating it) but oddly enough it is still the sValue from the LocalSystem account where my service is runnning ...</p>
  
  <p>Any clues on what I am doing wrong? Any help would be much appreciated.
  Thanks,</p>