title: in c#, how can i acces on remote registry with a specific user?
body: <p>Here is the code that i use to reach for remote registry : </p>
  
  <pre><code>    private void getAllOdbc(string pc)
      {
          RegistryKey regKey;
  
          regKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.CurrentUser, pc.ToString(), RegistryView.Registry64).OpenSubKey("SOFTWARE\\ODBC\\ODBC.INI\\ODBC Data Sources");
      }
  </code></pre>
  
  <p>I would like to access to the remote registry with a specific user that has the permission to the remote computer.</p>
  
  <p>When i launch this windows form application from my own computer, it works because i am already logged in with this specific user that has permission on the remote computer, but i will have to use this application on other computers that are not logged in with this specific user.</p>
  
  <p>So i would like to insert in my code something that will tell my application to access the remote registry with this specific user, like this anyone can use my application without been logged with this specific user.</p>
  
  <p>I already permitted the Remote Registry services on the remote computer.</p>