<div dir="ltr"><div class="gmail_quote">On Mon, Jul 2, 2012 at 10:16 PM, Mattias Gaertner <span dir="ltr"><<a href="mailto:nc-gaertnma@netcologne.de" target="_blank">nc-gaertnma@netcologne.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, 2 Jul 2012 22:00:05 +0300<br>
ik <<a href="mailto:idokan@gmail.com">idokan@gmail.com</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> It's the first time that I use Lazarus with Windows, and almost 10 years<br>
> since I last developed to Windows.<br>
><br>
> I'm trying to capture the windows message WM_QUERYENDSESSION (that exists<br>
> on JwaWinUser).<br>
><br>
> I did something like this:<br>
><br>
> TForm1 = class(TForm)<br>
> ...<br>
> private<br>
> procedure WMQueryEndSession(var Msg : TLMessage); message<br>
> WM_QUERYENDSESSION<br>
<br>
</div>Why not simply drop a ApplicationProperties onto the form and set the<br>
OnQueryEndSession event?<br></blockquote><div><br>Because I must know when the log off, and do some tasks before I can end the program. I must know that the endsession request was made because of such request, and OnQueryEndSession does not contain such details as far as i can see.<br>
<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Mattias<br></blockquote><div><br>Ido<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</blockquote></div><br></div>