🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Lock CTRL+ALT+Del

#14851
From: Remy Lebeau (TeamB)
Date: Mon, 28 Jul 2003 18:14
15 lines
1509 bytes
"mathias probst" <mathias.probst@t-online.de> wrote in message
news:bfmpl8$slc$06$1@news.t-online.com...

> I don't want that anyone can close my application
> without enter a password!

Simply use your main form's OnCloseQuery event and set the CanClose
parameter to false.  Even the TaskManager won't be able to kill your
application as it always attempts a graceful termination first, and using
OnCloseQuery allows the application to prevent closure gracefully.
TaskManager will not try to brute-force terminate the application.


Gambit
Technical Details
Message-ID: <3f256691$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <bfmpl8$slc$06$1@news.t-online.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ad4e86262d3cc3ea
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-28 11:10:51 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <bfmpl8$slc$06$1@news.t-online.com>
Subject: Re: Lock CTRL+ALT+Del
Date: Mon, 28 Jul 2003 11:14:05 -0700
Lines: 17
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.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f256691$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059415697 207.175.226.26 (28 Jul 2003 11:08:17 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail