title: Given process ID, find environment variables
body: <p>I need to be able to read the environment variables of another running process in windows. The code that I am writing requires me to read them prior to a process running it's code. </p>
  
  <p>Say there are two applications. I first run application #1. Once I run the application #2, application #1 will first read the environment variables of the second application (just reading them) before letting the second application run it's code. </p>
  
  <p>Notes:<br>
   1. Application #1 does not call CreateProcess for application #2.<br>
   2. Application #2 can be any application that the user has specified in application #1<br>
   3. Application #2 can be launched by shortcuts on the desktop, through other applications and launchers.<br>
   4. Application #1 can use PsSetLoadImageNotifyRoutine to get FullImageName, ProcessID, ImageInfo.</p>