🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

CreateProcess

#8756
From: Alfred Thomas
Date: Thu, 23 Sep 2004 13:35
8 lines
1208 bytes
Hi all

I would like to know what the best way is for killing a process created by CreateProcess is. I currently use TerminateProcess but in the Windows help it says that it should only be used in emergencies. ExitProcess doesn't take a handle to the process and kills only the current process.
So the question is, if I create a process with CreateProcess, how should I close it.

Regards
Alfred Thomas
Technical Details
Message-ID: <4152d119$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.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,40e3f6558dbc9806,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Alfred Thomas" <alfred@fischerint.co.za>
Sender: "Alfred Thomas" <alfred@fischerint.co.za>
Reply-To: "Alfred Thomas" <alfred@fischerint.co.za>
Subject: CreateProcess
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 196.25.217.126     
X-Forwarded-For: 192.96.150.202
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4152d119$1@newsgroups.borland.com>
Date: 23 Sep 2004 06:35:21 -0700
X-Trace: newsgroups.borland.com 1095946521 207.105.83.66 (23 Sep 2004 06:35:21 -0700)
Lines: 8
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail