ctypes.GetLastError()

ctypes.GetLastError() Windows only: Returns the last error code set by Windows in the calling thread. This function calls the Windows GetLastError() function directly, it does not return the ctypes-private copy of the error code.

ctypes.FormatError()

ctypes.FormatError([code]) Windows only: Returns a textual description of the error code code. If no error code is specified, the last error code is used by calling the Windows api function GetLastError.

ctypes.DllGetClassObject()

ctypes.DllGetClassObject() Windows only: This function is a hook which allows implementing in-process COM servers with ctypes. It is called from the DllGetClassObject function that the _ctypes extension dll exports.

ctypes.DllCanUnloadNow()

ctypes.DllCanUnloadNow() Windows only: This function is a hook which allows implementing in-process COM servers with ctypes. It is called from the DllCanUnloadNow function that the _ctypes extension dll exports.

ctypes.c_wchar_p

class ctypes.c_wchar_p Represents the C wchar_t * datatype, which must be a pointer to a zero-terminated wide character string. The constructor accepts an integer address, or a string.

ctypes.c_wchar

class ctypes.c_wchar Represents the C wchar_t datatype, and interprets the value as a single character unicode string. The constructor accepts an optional string initializer, the length of the string must be exactly one character.

ctypes.c_void_p

class ctypes.c_void_p Represents the C void * type. The value is represented as integer. The constructor accepts an optional integer initializer.

ctypes.c_ushort

class ctypes.c_ushort Represents the C unsigned short datatype. The constructor accepts an optional integer initializer; no overflow checking is done.

ctypes.c_ulonglong

class ctypes.c_ulonglong Represents the C unsigned long long datatype. The constructor accepts an optional integer initializer; no overflow checking is done.

ctypes.c_ulong

class ctypes.c_ulong Represents the C unsigned long datatype. The constructor accepts an optional integer initializer; no overflow checking is done.