title: Read other process current directory in C#
body: <p>I am trying to get current working directory of selected process. I am sure that it is possible, because tools like Process Explorer can show this information. I found out that this information is stored in PEB.</p>
  
  <p>Moreover I found Oleksiy blog post: <a href="http://eazfuscator.blogspot.com/2011/06/reading-environment-variables-from.html" rel="noreferrer">http://eazfuscator.blogspot.com/2011/06/reading-environment-variables-from.html</a>, but all my modifications are totally unless.</p>
  
  <p>So my question is how can I read this information in C#? If Oleksiy code is a good way, how should I modify his code to get this information?</p>