ctypes.pointer()

ctypes.pointer(obj) This function creates a new pointer instance, pointing to obj. The returned object is of the type POINTER(type(obj)). Note: If you just want to pass a pointer to an object to a foreign function call, you should use byref(obj) which is much faster.

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.memset()

ctypes.memset(dst, c, count) Same as the standard C memset library function: fills the memory block at address dst with count bytes of value c. dst must be an integer specifying an address, or a ctypes instance.

ctypes.memmove()

ctypes.memmove(dst, src, count) Same as the standard C memmove library function: copies count bytes from src to dst. dst and src must be integers or ctypes instances that can be converted to pointers.

ctypes.LittleEndianStructure

class ctypes.LittleEndianStructure(*args, **kw) Abstract base class for structures in little endian byte order.

ctypes.LibraryLoader.LoadLibrary()

LoadLibrary(name) Load a shared library into the process and return it. This method always returns a new instance of the library.

ctypes.LibraryLoader

class ctypes.LibraryLoader(dlltype) Class which loads shared libraries. dlltype should be one of the CDLL, PyDLL, WinDLL, or OleDLL types. __getattr__() has special behavior: It allows loading a shared library by accessing it as attribute of a library loader instance. The result is cached, so repeated attribute accesses return the same library each time. LoadLibrary(name) Load a shared library into the process and return it. This method always returns a new instance of the library.

ctypes.HRESULT

class ctypes.HRESULT Windows only: Represents a HRESULT value, which contains success or error information for a function or method call.

ctypes.get_last_error()

ctypes.get_last_error() Windows only: returns the current value of the ctypes-private copy of the system LastError variable in the calling thread.

ctypes.get_errno()

ctypes.get_errno() Returns the current value of the ctypes-private copy of the system errno variable in the calling thread.