🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Terminate a Process

#15982
From: Remy Lebeau (TeamB)
Date: Fri, 06 Jun 2003 02:04
18 lines
1621 bytes
"Willie" <Willie.nospam@nospam.pchome.com.tw> wrote in message
news:3edfee6d@newsgroups.borland.com...

> If a process is terminated from TaskManager.
> Is there any event (message) which I can catch?

By default the Task Manager tried to terminate the process gracefully first.
If the process has any windows, then WM_CLOSE will be sent to them.  If you
are using VCL forms, that will cause the OnCloseQuery and OnClose events to
trigger.  If you set the CanClose parameter of the OnCloseQuery event to
false, the termination wil be canceled.

The TM only resorts to brute-force terminations when it absolutely has to,a
nd not before then.


Gambit
Technical Details
Message-ID: <3edff711$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3edfee6d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,af910d70e1d925e2
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-05 19:07:13 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3edfee6d@newsgroups.borland.com>
Subject: Re: Terminate a Process
Date: Thu, 5 Jun 2003 19:04:17 -0700
Lines: 20
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.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3edff711$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054865169 207.175.226.26 (5 Jun 2003 19:06:09 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail