How to know the previous process whether exited? 
Author Message
 How to know the previous process whether exited?

David,

Quote:
>   I have ever launched a external program with CreateProcess(). I want to
> know the process that I launched before whether exited. The processID is
> returned in CreateProcess(). Could I conclude it according to searching if
> the ProcessID exist.

Why bother? If you used CreateProcess() you've also got a process handle.
With it you can either call WaitForSingleObject() to wait until the process
ends, or call GetExitCodeProcess() and if it returns STILL_ACTIVE, then it
hasn't ended yet.

--
Tomas Restrepo
http://www.*-*-*.com/



Fri, 02 Aug 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How to know the previous process whether exited?

2. How to know the previous process whether exited?

3. How to know the previous process whether exited?

4. What type of error should I check to know whether database is corrupted or not

5. Need to know whether the focus window will ignore keyboard input

6. How to know whether i am connected

7. how to know whether i am connected

8. how do i know whether IIS is installed not

9. exit(1), exit(2), exit(3) ....???

10. Process.Exited event

11. Process.Exited Event

12. exiting a .NET/C# process

 

 
Powered by phpBB® Forum Software