title: How to get a process working dir on Windows?
body: <p>How to get a process working dir on Windows using native API (for another process using process handle or PID)? I've watched <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms684847%28v=vs.85%29.aspx" rel="nofollow">Process and Thread Functions</a>, <a href="http://msdn.microsoft.com/en-us/library/ms684894%28v=vs.85%29.aspx" rel="nofollow">PSAPI Functions</a> and haven't found. Maybe WMI?</p>
  
  <p>Also, regarding these topics, how <em>PSAPI</em> relates to <em>Process and Thread Functions</em>? Is it outdated?</p>