title: C# How to change user context in app running on system
body: <p>I have an application that runs with the system user. I need that some code in the app runs on user context (with the user itself). For example i need to use the webclient in user context because that way my firewall recognize the username, but later i need to run some other code ex. Running a exe in system context (with system user) because i need the privileges.</p>
  
  <p>Is there a way to do this?. </p>
  
  <p>Thanks!!!</p>