Article View: borland.public.cppbuilder.nativeapi
Article #16123Re: Stopping a program running
From: Michael Kelly
Date: Sat, 31 May 2003 16:20
Date: Sat, 31 May 2003 16:20
13 lines
1377 bytes
1377 bytes
On 31 May 2003 05:25:03 -0700, "ASFern" <augusto_sf@hotmail.com> wrote:
>That is, is it possible to send a message from the Builder program to kill a running program? something like kill -9 in UNIX?
See PostMessage() WM_CLOSE and WM_QUIT in the Win32 help. The trick is
to get the main window handle of the app you want to terminate. You can do
this with the FindWindow() API.
--
"I don't want to belong to any club that would have me as a member."
-- Groucho Marx
Technical Details
Message-ID:
<08lhdvg80n7bndfkt5dmhc0d3b8nrevp4d@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ed89f1f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,372a710498657665 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-31 09:26:47 PST From: Michael Kelly <mkelly2002@adelphia.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Stopping a program running Date: Sat, 31 May 2003 12:20:30 -0400 Message-ID: <08lhdvg80n7bndfkt5dmhc0d3b8nrevp4d@4ax.com> References: <3ed89f1f$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.92/32.572 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 68.68.251.232 X-Trace: newsgroups.borland.com 1054398080 68.68.251.232 (31 May 2003 09:21:20 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail