# Assuming we're on Windows kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)