[DUG] WM_QueryEndSession
Trevor Jones
trevorj at ihug.co.nz
Wed Jul 13 10:02:16 NZST 2005
I have it working in a number of apps.
Remember that WM_QueryEndSession is just that: a query, and it allows your
app to say no. Is your app settings Msg.result to 1 in your handler? If
not, then maybe your own app is saying no.
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Rohit Gupta
Sent: Wednesday, 13 July 2005 9:39 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] WM_QueryEndSession
Has anyone had this working. I have tried it on and off for months
and I am not convinced that it works.
The idea was to shut down the unattended applications on receiving
this so that the Firebird Service can shut down afterwards without
prompting the user.
I can hook this message into an event on the mainform. However,
niether Form.Close nor Application.Terminate appear to do
anything.
Regards
Rohit
====================================================
==================
CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New
Zealand
PH (649) 489-2280
FX (649) 489-2290
email rohit at cfl.co.nz or r.gupta at xtra.co.nz
====================================================
==================
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
More information about the Delphi
mailing list