开发者

Using timer in Windows Mobile during standby

开发者 https://www.devze.com 2022-12-18 21:39 出处:网络
I want to use a timer in a windows mobile app. Of course, this is not the problem. The problem: the timer needs to be called even during standby and sleep mode.

I want to use a timer in a windows mobile app. Of course, this is not the problem.

The problem: the timer needs to be called even during standby and sleep mode.

Simply switching off the sleep mode is not really an option, since the app needs to comply to windows marketplace for mobiles requirements, and regarding to requirement 5.2 a marketplace app "shall not modify power management options".

Is there a system开发者_如何学运维 timer, which could be used to get an event called (like CeSetUserNotificationEx can be used to get an app started)?

Or how would I create a persistent timer?


CeRunAppAtTime can be used to set a named system event (not just to run an app). If the device is in sleep mode when that time arrives, it will wake.

0

精彩评论

暂无评论...
验证码 换一张
取 消