To use DLL or its source you should always include iqi_define.h header, and at choice

All functions return some non-negative value as a result or negative error code in case of failure (enumerated with ERR_ prefix in iqi_define.h).

Each function also takes a character buffer pointer cpErrMsg for an error description in case of failure. The error buffer should be at least 256 bytes.

Most of functions also take a port number to identify a port to which IQ² Master is connected. This port number is obtained from the connect functions, like mst_Connect/mst_EthernetConnect or dev_Connect/dev_EthernetConnect.