Article View: borland.public.cppbuilder.nativeapi
Article #12624Re: How to terminate an application, if you just know the window (HWND)?
From: Remy Lebeau (TeamB)
Date: Sun, 23 Nov 2003 21:55
Date: Sun, 23 Nov 2003 21:55
12 lines
1493 bytes
1493 bytes
"Yahia El-Qasem" <Yahia.El-Qasem@mgh.metro-ag.de> wrote in message news:3fc09113@newsgroups.borland.com... > get the ProcessID via GetWindowThreadProcessId and then us something like : That is a brute-force termination. That should only be done at a last resort when everything else fails. Terminating the process like that does not allow it to clean up after itself properly. Gambit
Technical Details
Message-ID:
<3fc12be0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!news-out.visi.com!petbe.visi.com!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4j21svs6vheoao1pci01rc5dfgu5foag8t@4ax.com> <3fc09113@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,b0b54b319450e271 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-23 14:05:57 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4j21svs6vheoao1pci01rc5dfgu5foag8t@4ax.com> <3fc09113@newsgroups.borland.com> Subject: Re: How to terminate an application, if you just know the window (HWND)? Date: Sun, 23 Nov 2003 13:55:27 -0800 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.137.149 Message-ID: <3fc12be0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069624288 67.22.137.149 (23 Nov 2003 13:51:28 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!news-out.visi.com!petbe.visi.com!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail