[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::windows-nt

Title:Windows NT
Notice:See note 15.0 for HCL location
Moderator:TARKIN::LIN.com::FOLEY
Created:Thu Oct 31 1991
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6086
Total number of notes:31449

5857.0. "Process termination " by SHOGUN::JAMBU_S (Skating away on the thin ice of a new day) Mon Mar 31 1997 09:28

    Is there a way to determine the pid of a process that has terminated.
    	we are writinga visual basic application where we have to 
    determine when a particular process has terminated.  How do 
    we do this? Or is it a question meant for the VB notes file
    
    Thanks
    
    Suresh
T.RTitleUserPersonal
Name
DateLines
5857.1CANDOO::GRIEBMon Mar 31 1997 09:426
open a handle to the process and the do a WaitForSingleObject() on it.
Handles get signaled when a process exits.

(don't forget to close the handle though !!)

5857.2SHOGUN::JAMBU_SSkating away on the thin ice of a new dayMon Mar 31 1997 11:405
    Can this be done from VB 3.0?  
    
    Thanks
    
    Suresh
5857.3CANDOO::GRIEBTue Apr 01 1997 09:266
>Can this be done from VB 3.0?  
    
If you can call WIN32 APIs then it can be done.