The thread's ctypes-private copy of the last error (not the system value,
see GetLastError), a signed C int as in CPython (0x80070005
reads as -2147024891). Functions and callbacks created with
use_last_error swap it with GetLastError() around each call.
The thread's ctypes-private copy of the last error (not the system value, see GetLastError), a signed C
intas in CPython (0x80070005reads as-2147024891). Functions and callbacks created withuse_last_errorswap it withGetLastError()around each call.Python equivalent:
ctypes.get_last_error()