Aoto Suspend
-
Hi, Is there a way to manilupate the power setting of the PDA (Ipaq or HP Jornada) progrmatically. Like i want the device to NOT go in suspend mode even after 5 mins when it is on battery power(the control panel only allows it till 5mins.). The reason is my app sometimes takes more than 5 mins to load depending on the size of the database and if the device suspends, the loading process is stopped and then resumes again only when the user wakes the device up. This makes the loading process very long at times. thanks Vs
-
Hi, Is there a way to manilupate the power setting of the PDA (Ipaq or HP Jornada) progrmatically. Like i want the device to NOT go in suspend mode even after 5 mins when it is on battery power(the control panel only allows it till 5mins.). The reason is my app sometimes takes more than 5 mins to load depending on the size of the database and if the device suspends, the loading process is stopped and then resumes again only when the user wakes the device up. This makes the loading process very long at times. thanks Vs
Hi, You can use either
::keybd_event(VK_F24, 0, KEYEVENTF_KEYUP | KEYEVENTF_SILENT, 0)
orSystemIdleTimerReset()
or both. I'd suggest that you use them with a timer, or if that's not possible, sprinkled here and there in your 'loading process'. I normally use those in combination withGetSystemPowerStatusEx
so I can allow the device to suspend if it's running low on power. I've noticed that my users dont like it when their PDA's hard reset due to no power ;P Jonas “Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002