title: C++ Get Username From Process
body: <p>I have a process handle with</p>
  
  <pre><code>HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, 0, THE_PROCESS_ID);
  </code></pre>
  
  <p>How can I get the username of the user that is running the process?</p>
  
  <p>I am using unmanaged code (no .NET).</p>