Options of callback: the ABI, and Python's use_errno / use_last_error (the trampoline swaps errno / GetLastError() with the ctypes-private copies around the function, as CPython's callbacks do).
use_errno
use_last_error
errno
GetLastError()
Optional
Options of callback: the ABI, and Python's
use_errno/use_last_error(the trampoline swapserrno/GetLastError()with the ctypes-private copies around the function, as CPython's callbacks do).