SleepIntercept is a helper class that allows your application to do work after an RQONOFF (suspend) interrupt occurs and before the system actually goes to sleep.
The sample class intercepts the RQONOFF event and calls your own callback procedure (a sample application is included).
To use the class you *must* be using a CE 4.x ADS device and you must set the following registry key:
This code can be modified to work with CE 3.0 by changing the reg keys. For more information see the On_Off.exe sample application (Graphics Master CE 3.0 only).
Funny you should mention it. We were just looking at this code on Friday using the BitsyX. I think there may be an issue with the VDDPOWEROFF event (looks like it may be set instead of being pulsed, causing it to retrigger in some applications).
I'm going to lock this topic, as it's intended to be a reference page, but we'll give an update here tomorrow about the status. If you want to email us directly with details of what you're observing, that may help, too.