sync with win32 platform.