Create an Error object from a Windows error code (Windows only).
Python equivalent: ctypes.WinError()
ctypes.WinError()
Optional
Error code (defaults to GetLastError())
GetLastError()
Message (defaults to FormatError(code))
FormatError(code)
Error with winerror, errno (mapped as Python's OSError) and strerror
winerror
errno
strerror
Create an Error object from a Windows error code (Windows only).
Python equivalent:
ctypes.WinError()