I am working with a DLL called CL3_IF.dll that is described in its documentation as:
Format: CL3IF_VERSION_INFO CL3IF_GetVersion(void)
Parameters: —
Return value: Returns the version of this DLL.
typedef struct {
INT majorNumber;
INT minorNumber;
INT revisionNumber;
INT buildNumber;
} CL3IF_VERSION_INFO;
Explanation: This function gets the DLL version.
I have used the following python code:
import ctypes
CLP=ctypes.WinDLL('CL3_IF.dll')
class CLIF_VERSION_INFO(ctypes.Structure):
_fields_ = [("majorNumber", ctypes.c_int),
("minorNumber", ctypes.c_int),
("revisionNumber", ctypes.c_int),
("buildNumber", ctypes.c_int)]
CLP.CL3IF_GetVersion(ctypes.c_void_p, CLIF_VERSION_INFO)
When I run the above code I get the following error:
ArgumentError: argument 1: <class 'TypeError'>: Don't know how to convert parameter 1
I want to be able to get the version info in a usable form, and many other functions of the dll give their outputs in complex structures.
The most complex function I will be using will be this
If anybody knows how I would go about reading the output of this, I would greatly appreciate it.