Fix Windows platform, use ctypes.windll instead of ctypes.cdll on Windows.