Link to home
Start Free TrialLog in
Avatar of bkr070998
bkr070998

asked on

How can I tell If a process is running , Windows

How can I tell if a process is currently running?
Stated another way.  How can I tell if an application is currently running?
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

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 kashif063098
kashif063098

hi EASY
USE WIN32 API ::FindWindow() to find any process or application is running

i am currently using it ..
 if need any example let me know


kashif
kashif,

The window title of some applications are not constant. And a process does not necessarily have a window.
::FindWindow() finds Windows and non Window Processes !
Well it depends on the need of bkr, may be he knows the application name which he needs to find.
i am currently using ::FindWindow()it in my project at work and it works perfectly fine.
Then there is another way to find windows/process use ::EnumWindows() and use a callback function to enumerate all windows and processes.
But i think you know that you need to find a specific application ::FindWindow() works

kashif

Yes, I agree it depends on bkr's need. But can you please tell me how you find a non-window process using FindWindow?
Avatar of bkr070998

ASKER

Thanks to both Chensu and Kashif for their very helpful answers and suggestions