To locate the Environment Variables of a process you must
access the PEB (Process Enviroment Block) of the application and follow this secuence to resolve the address of this buffer. PEB -> ProcessParameters(RTL_USER_PROCESS_PARAMETERS) -> Environment (Pointer) This is the definition of the ...
More...