🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Closing other applications

#2667
From: Richard Kavanagh
Date: Sun, 28 Jan 2007 20:01
8 lines
1472 bytes
 I wish to nicely close a tree of other processes. I can get their PIDs 
using CreateToolhelp32Snapshot() so I can use TerminateProcess() on each 
one. This is a bit drastic as it can cause up to two hours work to be lost. 
Is there another way? I can find the spawning application, but have no idea 
of the order of the dependencies. ExitProcess() does not seem to work and 
sending a WM_CLOSE message just minimises the main window.
I will be grateful for any clue.
Richard 
Technical Details
Message-ID: <45bd00e3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.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

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b6f91467ebf2f221,start
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
Subject: Closing other applications
Date: Sun, 28 Jan 2007 20:01:13 -0000
Lines: 10
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: <45bd00e3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1170014435 84.92.225.65 (28 Jan 2007 12:00:35 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.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