Create/SetWaitableTimer
-
I've set a waitable timer (
Create/SetWaitableTimer
API) to 10 seconds. Since it's been created in a window, I can't useWaitForxxxObjectxxx
sync function. So I wanna use a feature thatSetWaitableTimer
encapsulates, a call for completion routine. How can I assure the call for'PTIMERAPCROUTINE'
when a the timer has elapsed??? I read the the creating thread must be 'alert':confused:, but I don't want to use the sync API's. HELP!**--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
-
I've set a waitable timer (
Create/SetWaitableTimer
API) to 10 seconds. Since it's been created in a window, I can't useWaitForxxxObjectxxx
sync function. So I wanna use a feature thatSetWaitableTimer
encapsulates, a call for completion routine. How can I assure the call for'PTIMERAPCROUTINE'
when a the timer has elapsed??? I read the the creating thread must be 'alert':confused:, but I don't want to use the sync API's. HELP!**--BlackSmith--
**/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
BlackSmith wrote: I can't use WaitForxxxObjectxxx sync function. But you can use the MsgWaitForMultipleObjects My latest article: SQL Server DO's and DONT's[^]