Article View: borland.public.cppbuilder.nativeapi
Article #12657Shutdown signal
From: frrn
Date: Thu, 27 Nov 2003 07:40
Date: Thu, 27 Nov 2003 07:40
30 lines
1520 bytes
1520 bytes
I use this code to prevent my application to lock the system from loggin off
or shutting down
code :
void __fastcall TForm1::WndProc(TMessage& Message)
{
if(Message.Msg == WM_QUERYENDSESSION || Message.Msg == WM_ENDSESSION)
{
.....
Application->Terminate();
}
TControl::WndProc(Message);
}
.... but it doesnt work ....When I try to for example log off (or switch off
the computer) the aplication close itself, all other running apps close too
but the system stays locked and doesnt log off ...
Does somebody know what I am doing bad ?
frrn
Technical Details
Message-ID:
<3fc5aaf0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,126fc3ba03e9bc88,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-27 00:05:16 PST Reply-To: "frrn" <radofrano@hotmail.com> From: "frrn" <radofrano@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Shutdown signal Date: Thu, 27 Nov 2003 08:40:59 +0100 Lines: 32 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: 217.118.99.41 Message-ID: <3fc5aaf0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069918960 217.118.99.41 (26 Nov 2003 23:42:40 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail