🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Closing other applications

#2670
From: Richard Kavanagh
Date: Mon, 29 Jan 2007 11:14
9 lines
1388 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:45bdaa0c@newsgroups.borland.com...
> Use EnumWindows() and GetWindowThreadProcessId() to find all of the
> HWNs that belong to those processes.  Then you can send WM_CLOSE
> and/or WM_QUIT messages to them.

Works perfectly. Thank you.
Richard 
Technical Details
Message-ID: <45bdd6c4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45bd00e3@newsgroups.borland.com> <45bdaa0c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b6f91467ebf2f221
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Richard Kavanagh" <dd.foldhill@google-ignore-mail.com>
From: "Richard Kavanagh" <dd.foldhill@google-ignore-mail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <45bd00e3@newsgroups.borland.com> <45bdaa0c@newsgroups.borland.com>
Subject: Re: Closing other applications
Date: Mon, 29 Jan 2007 11:14:04 -0000
Lines: 11
Organization: Foldhill
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 84.92.225.65
Message-ID: <45bdd6c4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1170069188 84.92.225.65 (29 Jan 2007 03:13:08 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail