2
votes
Vote UpVote

Getting the environment variables of an external x86 process

The Road to Delphi – 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 PEB structure typedef struct _PEB { BYTE Reserved1[2]; BYTE BeingDebugged; BYTE Reserved2[1]; PVOID Reserved3[2]; PPEB_LDR_DATA Ldr; PRTL_USER_PROCESS_PARAMETERS ...
Favorite? Off-Topic? Rodrigo @ 2012-05-27 01:19

Statistics

Visits: 533
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Horbs
stukelly
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)