title: get process name from process id (win32)
body: <p>I need to get a list of all processes on a windows system including names and PID.<br>
  <a href="http://msdn.microsoft.com/en-us/library/ms682629%28v=VS.85%29.aspx" rel="noreferrer">EnumProcess</a> can obtain a list of pids, but how do I get the process name from the pid? I don't want to call OpenProcess on the process as that doesn't always work (like if the other process is run by a different user).</p>