title: How do I determine the owner of a process in C#?
body: <p>I am looking for a process by the name of "MyApp.exe" and I want to make sure I get the process that is owned by a particular user. </p>
  
  <p>I use the following code to get a list of the processes:</p>
  
  <pre><code>Process[] processes = Process.GetProcessesByName("MyApp");
  </code></pre>
  
  <p>This gives me a list of processes, but there does not appear to be a way in the Process class to determine who owns that process?  Any thoughts on how I can do this?</p>