Remove win32com dependency by using ctypes to invoke win32 API.