Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to monitor the status of a process. Pin
George225-Oct-03 23:52
George225-Oct-03 23:52 
AnswerRe: How to monitor the status of a process. Pin
Jörgen Sigvardsson26-Oct-03 0:22
Jörgen Sigvardsson26-Oct-03 0:22 
GeneralRe: How to monitor the status of a process. Pin
George226-Oct-03 0:36
George226-Oct-03 0:36 
GeneralRe: How to monitor the status of a process. Pin
Jörgen Sigvardsson26-Oct-03 0:41
Jörgen Sigvardsson26-Oct-03 0:41 
GeneralRe: How to monitor the status of a process. Pin
George226-Oct-03 0:46
George226-Oct-03 0:46 
GeneralRe: How to monitor the status of a process. Pin
Jörgen Sigvardsson26-Oct-03 0:52
Jörgen Sigvardsson26-Oct-03 0:52 
GeneralRe: How to monitor the status of a process. Pin
George226-Oct-03 1:06
George226-Oct-03 1:06 
GeneralRe: How to monitor the status of a process. Pin
Jörgen Sigvardsson26-Oct-03 1:13
Jörgen Sigvardsson26-Oct-03 1:13 
George2 wrote:
I have read this document from the link and I find it can only be used on thread (not process) context.

I'm not sure in what transitions of a process will trigger the wait functions. Threads within that process may trigger them, exceptional errors, etc. But, you can always check the process status using the process functions when the wait function is triggered. You can check if the process is alive or not. Smile | :)

As for thread context, it applies only to the calling thread I believe. Anything with a HANDLE can be monitored with a wait function - may it be a thread, process, file, or what have you.

--
They're out get me, I can't escape cos' they won't let me
They won't forget me, they'll get me in their grip and sweat me
They'll wait me out, and then move in under my skin
They'll make me doubt, they're out to make me let them in

GeneralRe: How to monitor the status of a process. Pin
George226-Oct-03 1:24
George226-Oct-03 1:24 
GeneralDial-Up Server programming for win98 Pin
Reza Azizi25-Oct-03 23:31
Reza Azizi25-Oct-03 23:31 
GeneralDLL problem Pin
Ghasrfakhri25-Oct-03 21:38
Ghasrfakhri25-Oct-03 21:38 
GeneralRe: DLL problem Pin
Jörgen Sigvardsson26-Oct-03 0:26
Jörgen Sigvardsson26-Oct-03 0:26 
GeneralATL collection and event firing Pin
Paul Farry25-Oct-03 19:45
professionalPaul Farry25-Oct-03 19:45 
GeneralRe: ATL collection and event firing Pin
Jörgen Sigvardsson26-Oct-03 0:34
Jörgen Sigvardsson26-Oct-03 0:34 
GeneralWhats the IP Mr. Winsock? (How can I find out a connected persons IP) Pin
STS_Secure_Telnet25-Oct-03 19:38
STS_Secure_Telnet25-Oct-03 19:38 
GeneralRe: Whats the IP Mr. Winsock? (How can I find out a connected persons IP) Pin
andyvinc25-Oct-03 21:35
andyvinc25-Oct-03 21:35 
Generalcharacter presentation Pin
convert_sg25-Oct-03 19:11
convert_sg25-Oct-03 19:11 
GeneralRe: character presentation Pin
Gary R. Wheeler26-Oct-03 6:10
Gary R. Wheeler26-Oct-03 6:10 
GeneralRe: character presentation Pin
convert_sg29-Oct-03 15:18
convert_sg29-Oct-03 15:18 
Questionhow to detect when an app is invoked from another running application Pin
raishum25-Oct-03 19:09
raishum25-Oct-03 19:09 
AnswerRe: how to detect when an app is invoked from another running application Pin
igor196026-Oct-03 10:02
igor196026-Oct-03 10:02 
GeneralToggling the password style in an edit box Pin
Michael Dunn25-Oct-03 17:56
sitebuilderMichael Dunn25-Oct-03 17:56 
GeneralRe: Toggling the password style in an edit box Pin
Gary R. Wheeler26-Oct-03 6:43
Gary R. Wheeler26-Oct-03 6:43 
GeneralRe: Toggling the password style in an edit box Pin
Michael Dunn26-Oct-03 6:54
sitebuilderMichael Dunn26-Oct-03 6:54 
GeneralRe: Toggling the password style in an edit box Pin
igor196026-Oct-03 10:08
igor196026-Oct-03 10:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.