Basic win32 event handling.