update seek function for win32.