SetWaitableTimer...
-
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.
-
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.
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.)