🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14562

Re: CreateProcess and ExitProcess woes

#14562
From: Mark D
Date: Thu, 07 Aug 2003 10:47
19 lines
1573 bytes
"Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> wrote:

>ExitProcess() terminates the *calling* process.  You cannot 
>use it to >terminate the process that you are spawning with 
>CreateProcess().

How about TerminateProcess().  Same?  If so I use the suggested
window enumeration to find all windows associated with the 
spawned process or have an idle loop running in the
called process which waits for the main app to execute, and then
kills itself.  Honourably.

This can't be new territory.  What's the standard way to
call and kill an app from your own app?

Thanks again.

Mark
Technical Details
Message-ID: <3f322e37$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f31016b@newsgroups.borland.com> <3f3130f6$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e076c50d5b2e440a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-07 03:56:35 PST
From: "Mark D" <m.davenCROPHEREport@ntlworld.com>
Sender: "Mark D" <m.davenCROPHEREport@ntlworld.com>
Reply-To: "Mark D" <m.davenCROPHEREport@ntlworld.com>
Subject: Re: CreateProcess and ExitProcess woes
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 213.121.212.121 213.121.212.121    
X-Forwarded-For: 10.250.0.101
References: <3f31016b@newsgroups.borland.com> <3f3130f6$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3f322e37$1@newsgroups.borland.com>
Date: 7 Aug 2003 03:47:19 -0700
X-Trace: newsgroups.borland.com 1060253239 207.105.83.65 (7 Aug 2003 03:47:19 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail