TimedCallback function now works correctly on win32