• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

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?
0
bkr070998
Asked:
bkr070998
  • 3
  • 2
1 Solution
 
chensuCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now