Improve event processing in Windows.