WM_QUERYENDSESSION question

Giganews Newsgroups
Subject: WM_QUERYENDSESSION question
Posted by:  Bob D (bo…@demo.it)
Date: Fri, 15 Sep 2006

Hello,

is there any way to make my application to be the last one that will be
informed for the WM_QUERYENDSESSION? My application is a cybercafe client
and when I catch the WM_QUERYENDSESSION message I close the connection with
the server, stop the charging and shutdown my self. Some users do the
following trick.

1. they open a wordpad and press some stuff
2. they ask to reset computer. a save dialog appears to the wordpad
3. my application is performing the shutdown of itself
4. they press "cancel" to the wordpad dialog

voila, working computer without my app running.

Any idea is accepted. Thanks

Replies