How can I tell If a process is running , Windows

Posted on 1998-07-09
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?
Question by:bkr070998
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
LVL 23

Accepted Solution

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

HOWTO: Enumerate Applications in Win32


Expert Comment

ID: 1167479
USE WIN32 API ::FindWindow() to find any process or application is running

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

LVL 23

Expert Comment

ID: 1167480

The window title of some applications are not constant. And a process does not necessarily have a window.
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

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


LVL 23

Expert Comment

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?

Author Comment

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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

717 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