Sets the current value of the ctypes-private copy of the system LastError variable in the calling thread to value and return the previous value.
ctypes/set_last_error
set_last_error