Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Getting "alive" state information from process

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

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…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

610 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