Do you mean that you want to block pocket pc from suspend automatically?
You can try to set its registry keys to 0 (means not to suspend)
HKLM\SYSTEM\CurrentControlSet\Control\Power\BattPowerOff
HKLM\SYSTEM\CurrentControlSet\Control\Power\ExtPowerOff
You could also P/Invoke SystemIdleTimerReset() periodically during the
process that should not be suspended. Obviously, it would be *very*
unfriendly to call this all the time from your program.
Paul T.
"Microsoft MVP ¸¨Õ»a(Jan Yeh) for Windows CE .NET"
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.