How to stop sleeping PDA

I have a PDA application with a long process and I am having a problem that the PDA will sleep until the process completes.

I have no control over the power settings on my PDA, does anyone know a good way for my application to stop the PDA from sleeping?

Many thanks

+2


source to share


2 answers


Take a look:



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

+7


source


You need to make a function that calls SystemIdleTimerReset, SHIdleTimerReset and simulates a key press. Then you need to call this regularly from your application.

For an example in C ++, take a look here:



Disable hibernation in Windows Mobile 6

+6


source







All Articles