Disable sleep mode in Windows Mobile 6

前端 未结 3 1458
感动是毒
感动是毒 2020-12-03 09:04

Does anyone know how could I programatically disable/enable sleep mode on Windows Mobile?

Thanks!

3条回答
  •  眼角桃花
    2020-12-03 09:46

    Probably by modifying the "System Power States" as described here (but in c#)

    That article also describes a way to prevent the mobile device to sleep (which is not exactly what you may want), by calling the native function SystemIdleTimerReset() periodically (to prevent the device from powering down).

提交回复
热议问题