Solved

How can I tell If a process is running , Windows

Posted on 1998-07-09
6
178 Views
Last Modified: 2010-04-01
How can I tell if a process is currently running?
Stated another way.  How can I tell if an application is currently running?
0
Comment
Question by:bkr070998
  • 3
  • 2
6 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1167478
Look into the following KB article.

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

0
 

Expert Comment

by:kashif063098
ID: 1167479
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
 
LVL 23

Expert Comment

by:chensu
ID: 1167480
kashif,

The window title of some applications are not constant. And a process does not necessarily have a window.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Expert Comment

by:kashif063098
ID: 1167481
::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
 
LVL 23

Expert Comment

by:chensu
ID: 1167482
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
 

Author Comment

by:bkr070998
ID: 1167483
Thanks to both Chensu and Kashif for their very helpful answers and suggestions
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now