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. General Programming
  3. C / C++ / MFC
  4. SetWaitableTimer...

SetWaitableTimer...

Scheduled Pinned Locked Moved C / C++ / MFC
databasequestion
2 Posts 2 Posters 0 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.
  • B Offline
    B Offline
    BlackSmith
    wrote on last edited by
    #1

    Is it possible to query the remaining time of timer (returned by Set/CreateWaitableTimer)? If so HOWTO??? 10x**

    --BlackSmith--

    **/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.

    A 1 Reply Last reply
    0
    • B BlackSmith

      Is it possible to query the remaining time of timer (returned by Set/CreateWaitableTimer)? If so HOWTO??? 10x**

      --BlackSmith--

      **/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.

      A Offline
      A Offline
      Alvaro Mendez
      wrote on last edited by
      #2

      I don't know of any Timer-related function to do so, but I would probably go with something like GetTickCount to grab the times first at SetWaitableTimer and then at WaitForSingleObject. The max wait time minus the difference of these two should tell you how much time was left. Regards, Alvaro


      Well done is better than well said. -- Benjamin Franklin (I actually prefer medium-well.)

      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