[Lazarus] capturing system shutdown

Luca Olivetti luca at wetron.es
Tue Jan 5 09:32:39 CET 2010


En/na Paul Ishenin ha escrit:
> JoshyFun wrote:
>> In Windows world you must handle the WMQueryEndSession message, I had
>> done it in Delphi in the past but never in Lazarus. You can try this
>> Delphi snippet http://delphi.about.com/cs/adptips2000/a/bltip0500_4.htm
>>   
> Application.OnEndSession executes by this message.

OnQueryEndSession (invoked earlier than OnEndSession) can also cancel 
the shutdown.

Bye
-- 
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 (Ext.133)  Fax +34 93 5883007



More information about the Lazarus mailing list