?
Solved

How can I tell If a process is running , Windows

Posted on 1998-07-09
6
Medium Priority
?
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 150 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

752 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