简体   繁体   中英

How to stop a PDA sleeping

I have an application for PDAs with a long running process, and I'm getting the problem that the PDA is 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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM