Article View: borland.public.cppbuilder.nativeapi
Article #12800Closing another program
From: Eelke Klein
Date: Tue, 18 Nov 2003 12:12
Date: Tue, 18 Nov 2003 12:12
13 lines
1250 bytes
1250 bytes
My program starts another program. Of this program I have the process handle. What is the best way to close this other program? I was thinking about sending a WM_CLOSE message but I need the Window handle for this. TerminateProcess didn't seem like a good idea to me as it terminates the process unconditionally. Eelke
Technical Details
Message-ID:
<3fba0c7c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,36f59e3e03394bfd,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-18 04:39:28 PST Date: Tue, 18 Nov 2003 13:12:13 +0100 From: Eelke Klein <e.klein@mplussoftware.nl> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Closing another program Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.58.1.162 Message-ID: <3fba0c7c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069157500 81.58.1.162 (18 Nov 2003 04:11:40 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail