Solved

Getting "alive" state information from process

Posted on 1998-07-29
2
174 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
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

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

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…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

910 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

21 Experts available now in Live!

Get 1:1 Help Now