background application, action to do on PC shutdown (and suspend?)

Vadim Zeitlin vadim at wxwidgets.org
Sat Aug 11 14:28:47 PDT 2007


On Sat, 11 Aug 2007 13:04:16 +0200 Torsten Mohr <tmohr at s.netic.de> wrote:

TM> That application should also do some small tasks when the PC
TM> is shut down.  I wonder now what callback i could use for that.

 Under Windows you can use EVT_QUERY_END_SESSION. I'm not sure if this
event is generated on the other platforms though.

TM> It would also be great if i could do some actions on other
TM> events like: Suspend to Disk, Suspend to RAM, Low Battery, ...

 You have EVT_POWER_XXX for this. See the power sample. Those definitely
are Windows-only right now unfortunately.

 Any help with adding support for these events on the other systems would
be highly welcome.

 Regards,
VZ
-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/






More information about the wx-users mailing list