Article View: borland.public.cppbuilder.nativeapi
Article #15916Re: Terminate a Process
From: Stefano Bonifazi
Date: Sat, 07 Jun 2003 13:00
Date: Sat, 07 Jun 2003 13:00
22 lines
1822 bytes
1822 bytes
Hi Mr. Willie, if you're talking about other processes than your own (that is the ones you have developed and so you can add a OnClose event to), well you can implement your own event dispatcher: simply create a thread that enumerate the active processes (Thank You again Mr. Gambit and Vladimir for Your help about that:) ) and check for "your" process disappearance (with the same way you can catch new process creation!!)... Another way may be getting the processID once and then loop querying for its validity:) ... I hope that can be useful Stefano B. "Willie" <Willie.nospam@nospam.pchome.com.tw> ha scritto nel messaggio news:3edfee6d@newsgroups.borland.com... > Hi all: > > If a process is terminated from TaskManager. > Is there any event (message) which I can catch? > > Willie. > >
Technical Details
Message-ID:
<3ee1e1e5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3edfee6d@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,af910d70e1d925e2 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-07 06:08:01 PST Reply-To: "Stefano Bonifazi" <stefboombastic@libero.it> From: "Stefano Bonifazi" <stefboombastic@libero.it> Newsgroups: borland.public.cppbuilder.nativeapi References: <3edfee6d@newsgroups.borland.com> Subject: Re: Terminate a Process Date: Sat, 7 Jun 2003 15:00:12 +0200 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 151.24.139.156 Message-ID: <3ee1e1e5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054990821 151.24.139.156 (7 Jun 2003 06:00:21 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail