Article View: borland.public.cppbuilder.nativeapi
Article #7608Terminating process in case of emergency
From: Michael Wade
Date: Sat, 15 Jan 2005 00:02
Date: Sat, 15 Jan 2005 00:02
9 lines
1531 bytes
1531 bytes
I have a process that creates yet another process using "CreateProcess" with all the usual parameters. I need to handle a catastrophic failure in the first process such that it shuts down the created process. I have looked through "CreateProcess" and see that the hProcess is provided, but what is the most secure (i.e. most likely to drive a stake through the heart of the created process). I don't want to send a WM_QUIT message as I am not entirely sure of the state of the program. Is TerminateProcess the one I want? Thanks very much for your time, Michael Wade
Technical Details
Message-ID:
<snmgu0tiunp5m429d0s7ldakkrt9vshkvv@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,18b55384e6e9f2be,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Michael Wade <noway@nohow.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Terminating process in case of emergency Date: Fri, 14 Jan 2005 16:02:42 -0800 Message-ID: <snmgu0tiunp5m429d0s7ldakkrt9vshkvv@4ax.com> X-Newsreader: Forte Agent 2.0/32.652 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 66.120.49.186 X-Trace: newsgroups.borland.com 1105747399 66.120.49.186 (14 Jan 2005 16:03:19 -0800) Lines: 9 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail