Article View: borland.public.cppbuilder.nativeapi
Article #3984Re: Terminate Process started by CreateProcess
From: Remy Lebeau (TeamB)
Date: Tue, 28 Mar 2006 11:29
Date: Tue, 28 Mar 2006 11:29
13 lines
1200 bytes
1200 bytes
"Binzhong Zhou" <Binzhong.Zhou@csiro.au> wrote in message news:4428b7bf$1@newsgroups.borland.com... > Could some one tell how I can safely terminate an application > started by CreateProcess? Use EnumWindows() and GetWindowThreadProcessId() to find any windows that belong to the spawned process, and send them all a WM_CLOSE or WM_QUIT message. Gambit
Technical Details
Message-ID:
<44291e56$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4428b7bf$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,28ca43e529050a9d X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4428b7bf$1@newsgroups.borland.com> Subject: Re: Terminate Process started by CreateProcess Date: Tue, 28 Mar 2006 03:29:51 -0800 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <44291e56$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1143545430 68.69.17.41 (28 Mar 2006 03:30:30 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail