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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
====================================================
==================


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to