ctypes.string_at()

ctypes.string_at(address, size=-1) This function returns the C string starting at memory address address as a bytes object. If size is specified, it is used as size, otherwise the string is assumed to be zero-terminated.

ctypes.set_errno()

ctypes.set_errno(value) Set the current value of the ctypes-private copy of the system errno variable in the calling thread to value and return the previous value.

ctypes.set_last_error()

ctypes.set_last_error(value) Windows only: set 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.sizeof()

ctypes.sizeof(obj_or_type) Returns the size in bytes of a ctypes type or instance memory buffer. Does the same as the C sizeof operator.

ctypes.PYFUNCTYPE()

ctypes.PYFUNCTYPE(restype, *argtypes) The returned function prototype creates functions that use the Python calling convention. The function will not release the GIL during the call.

ctypes.PyDLL._name

PyDLL._name The name of the library passed in the constructor.

ctypes.py_object

class ctypes.py_object Represents the C PyObject * datatype. Calling this without an argument creates a NULL PyObject * pointer.

ctypes.resize()

ctypes.resize(obj, size) This function resizes the internal memory buffer of obj, which must be an instance of a ctypes type. It is not possible to make the buffer smaller than the native size of the objects type, as given by sizeof(type(obj)), but it is possible to enlarge the buffer.

ctypes.OleDLL

class ctypes.OleDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False) Windows only: Instances of this class represent loaded shared libraries, functions in these libraries use the stdcall calling convention, and are assumed to return the windows specific HRESULT code. HRESULT values contain information specifying whether the function call failed or succeeded, together with additional error code. If the return value signals a failure, an OSError is automatically rai

ctypes.PyDLL._handle

PyDLL._handle The system handle used to access the library.