Link to home
Start Free TrialLog in
Avatar of JeFF
JeFF

asked on

Process Hanlde to hInstance

Is there a way to get the hInstance of a process when u only have a handle to that process
or the PID of the process?
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JeFF
JeFF

ASKER

Well, what i need is the base address of a process for analyzing the PE structure. I use NtQuerySystemInformation for getting all the running processes.
I don't get that.  What do you need the base address for?  That doesn't seem like that could be of any value.
Avatar of JeFF

ASKER

Well i use GetModuleHandle(NULL) to start analyse the PE structure of the process itself. Now i wanna analyze the PE structures of all running processes and i got no clue how to do this.
The question is, what do you need the module handle for in the this analysis?   I don't understand that.
Avatar of JeFF

ASKER

i found it, thx anyway nietod