using ctypes instead of win32api