Solved

Getting "alive" state information from process

Posted on 1998-07-29
2
173 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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
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.

771 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

16 Experts available now in Live!

Get 1:1 Help Now