开发者

How to stop a PDA sleeping

开发者 https://www.devze.com 2022-12-09 17:27 出处:网络
I have an application for PDAs with a long running process, and I\'m getting the problem that the PDA i开发者_运维百科s going to sleep before the process has completed.

I have an application for PDAs with a long running process, and I'm getting the problem that the PDA i开发者_运维百科s going to sleep before the process has completed.

I haven't got any control over the power settings on the PDA, does anyone know a good way for my application to stop the PDA from going to sleep?

Many thanks


Have a look at:

http://www.pinvoke.net/default.aspx/coredll.SystemIdleTimerReset


You need to make a function that calls SystemIdleTimerReset, SHIdleTimerReset and simulates a key touch. Then you need to call it on a regular basis from within your application.

For an example in C++, look here:

Disable sleep mode in Windows Mobile 6

0

精彩评论

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

关注公众号