Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Aoto Suspend

Aoto Suspend

Scheduled Pinned Locked Moved Mobile
databasevisual-studio
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VS____
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • V 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

      J Offline
      J Offline
      Jonas Larsson
      wrote on last edited by
      #2

      Hi, You can use either ::keybd_event(VK_F24, 0, KEYEVENTF_KEYUP | KEYEVENTF_SILENT, 0) or SystemIdleTimerReset() 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 with GetSystemPowerStatusEx 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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups