?
Solved

Getting "alive" state information from process

Posted on 1998-07-29
2
Medium Priority
?
179 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 210 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

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

800 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