Solved

Getting "alive" state information from process

Posted on 1998-07-29
2
178 Views
Last Modified: 2010-04-10
I use Windows NT 4.0.
I need a possibility to query if a process is still alive; task manager sometimes tells you "the process does not respond" if you want to kill it ... what kind of message traffic is it that allowes such decisions ?

The process is a VB 5.0 exe program.
0
Comment
Question by:PC-Alex
[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
2 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1168991
In that case it posts a WM_ENDSESSION message in the application does not quit within a certain time out period, say about 10 seconds, Windows assumes it is not able to quit.  That might not work for your needs.  I'm not sure what you want to do.
0
 
LVL 11

Accepted Solution

by:
alexo earned 70 total points
ID: 1168992
SendMessageTimeout() is uset to query if the task is responding or not.

If you post Windows related question to the "windows porigramming" area instead of the "C++ porigramming" area you will make me a happy person (not to mention having a better chance of getting your questions answered quickly and correctly).  Thank you!
0

Featured Post

Independent Software Vendors: 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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

696 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