Article View: borland.public.cppbuilder.nativeapi
Article #14311Re: ProcessID mismatch after CreateProcess() call.
From: Remy Lebeau (TeamB)
Date: Fri, 15 Aug 2003 08:37
Date: Fri, 15 Aug 2003 08:37
14 lines
1734 bytes
1734 bytes
"Mark D" <m.davenSNIPport@ntlworld.com> wrote in message news:3f3c9692$1@newsgroups.borland.com... > Launch an application which my application needs running - > and then close it when my app closes. The launch is OK > and I can get the correct handle by checking the window text. Rather than looking for a specific window, you should be using EnumWindows() and GetWindowThreadProcessId() to find all windows that belong to the given process and then close them one at a time. Gambit
Technical Details
Message-ID:
<3f3c9a38$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f3b5fc8$1@newsgroups.borland.com> <3f3bc743$1@newsgroups.borland.com> <3f3bf72a$1@newsgroups.borland.com> <3f3c04d0$1@newsgroups.borland.com> <3f3c9692$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,1f2bd942df162911 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-15 01:31:44 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f3b5fc8$1@newsgroups.borland.com> <3f3bc743$1@newsgroups.borland.com> <3f3bf72a$1@newsgroups.borland.com> <3f3c04d0$1@newsgroups.borland.com> <3f3c9692$1@newsgroups.borland.com> Subject: Re: ProcessID mismatch after CreateProcess() call. Date: Fri, 15 Aug 2003 01:37:31 -0700 Lines: 16 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.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f3c9a38$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060936248 207.175.226.26 (15 Aug 2003 01:30:48 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail