LRESULT CALLBACK EventLoop::foregroundIdleProc(int nCode, WPARAM wParam, LPARAM lParam) { EventLoop *self = (EventLoop *)Scheduler::getThis(); MORDOR_LOG_TRACE(g_log) << self->m_messageWindow << " message pump idle"; if (self->hasWorkToDo()) self->tickle(); return CallNextHookEx(self->m_idleHook, nCode, wParam, lParam); }