REQ: C# code to prevent pocket pc 2003 going into standby

  • Thread starter Thread starter Derek Chalmers
  • Start date Start date
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

As to manipulate registry, you can use OpenNETCF Registry class.
http://www.openNETCF.org/

--
Best Regards,
Jan Yeh

MVP(Windows CE.NET), MCAD, .NETcf Developer & Consultant
Mobile Mind Co., Ltd. @ Taiwan
 
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"
 
Back
Top