tags:

views:

54

answers:

4

How do I view the environment variable of a Windows process? Looking for Windows equivalent for something like environ file in procfs on Unix.

+2  A: 

Process Explorer or one of it's friends should help.

Maxwell Troy Milton King
should have clarified my question, I was actually looking for 3rd party tool to view env of an arbitrary process
theactiveactor
+1  A: 

To get process environment, you must be able to obtain its context. And within the context, use getenv() to get specific variable.

alemjerus
+3  A: 

Check out GetEnvironmentStrings.

John Feminella
+2  A: 

Take a look at the _environ variable.

anon