Hi,
I have a timer class which uses CreateTimerQueueTimer and DeleteTimerQueueTimer. I receive callbacks to the class objects as expected. How do i make sure the timer does not fire when the app is busy drawing the UI or doing some intensive renders etc ?? I am not concerned about high resolution, just that it has to fire when app is idle.
i am using the following to create the timer.
BOOL timerCreated = ::CreateTimerQueueTimer(&mTimerRef,
NULL,
TimerCallback,
(PVOID)(this),
inFireDelay * 1000,
inInterval * 1000,
WT_EXECUTEINUITHREAD);
// using timer queues because i dont have access to a hWnd in this class.
Sorry i cannot use MFC/.NET stictly win32 only.
Thanks, Abhinay.