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?
bkr070998Asked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
Look into the following KB article.

HOWTO: Enumerate Applications in Win32
http://support.microsoft.com/support/kb/articles/q175/0/30.asp

0
 
kashif063098Commented:
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
0
 
chensuCommented:
kashif,

The window title of some applications are not constant. And a process does not necessarily have a window.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
kashif063098Commented:
::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

0
 
chensuCommented:
Yes, I agree it depends on bkr's need. But can you please tell me how you find a non-window process using FindWindow?
0
 
bkr070998Author Commented:
Thanks to both Chensu and Kashif for their very helpful answers and suggestions
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.