Lazarus

Programming => Operating Systems => Windows CE => Topic started by: sandeep_c24 on April 08, 2009, 05:04:55 am

Title: Power state changes
Post by: sandeep_c24 on April 08, 2009, 05:04:55 am
I want to close my application when PDA is powered off or it enters a suspended state. How do I do it?

Sandeep
Title: Re: Power state changes
Post by: JoniDS on April 08, 2009, 02:07:18 pm
I think you can't, because suspend messages are only sent to drivers. You will only receive suspend messages when device is powered again.
The message is PBT_TRANSITION.