Link to home
Start Free TrialLog in
Avatar of private99
private99

asked on

Process viewer

Does anyone know how to capture the process path when an new
application is activated? Some sort like the process viewer program in the viscual C++.
Thanks.
Avatar of Madshi
Madshi

I can tell you how to get a list of all currently running processes with the programs full path. Is it that what you need? Which language are you using?

Regards, Madshi.
Avatar of private99

ASKER

yap....l want to monitor and capture all currently running process(new application) with programs full path name.l am using VC++.
Thanks.
There are two different approaches for win95/98/NT5 on the one hand and for winNT4 on the other hand.
If you need this to run only for win95/98/NT5 you'll have to use the toolhelp functions.
If you need it to run only for winNT4, you'll have to use the "psApi.dll" functions (for NT5 you can use both methods).
If you need it to run for all systems, you'll have to implement both methods.
The problem is: I'm programming in Delphi. You could download my "enumStuff" Delphi unit from my homepage "http://www.madshi.com" in the "sources" section, but I don't know if you are able to convert the sources...   :-(

However, AFAIK, you could download the process viewer's sources directly from Microsoft (www.microsoft.com). But the process viewer works only for winNT, or am I wrong?

Regards, Madshi.
Edited text of question
ASKER CERTIFIED SOLUTION
Avatar of Mirkwood
Mirkwood

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
Adjusted points to 60