ProSoft Technology MVI69-ADM User Manual
Page 293

MVI-ADM ♦ 'C' Programmable
CIP Messaging Library Functions
'C' Programmable Application Development Module
Developer's Guide
ProSoft Technology, Inc.
Page 293 of 342
February 20, 2013
MVIcip_GetVersionInfo
Syntax
int MVIcip_GetVersionInfo(MVIHANDLE handle, VICIPVERSIONINFO *verinfo);
Parameters
handle handle
returned by previous call to MVIcip_Open
verinfo
pointer to structure of type MVICIPVERSIONINFO
Description
MVIcip_GetVersionInfo retrieves the current version of the API library and the
backplane device driver. The information is returned in the structure verinfo.
handle must be a valid handle returned from MVIcip_Open.
The MVICIPVERSIONINFO structure is defined as follows:
typedef struct tagMVICIPVERSIONINFO
{
WORD APISeries; /*API series */
WORD APIRevision; /* API revision */
WORD BPDDSeries; /* Backplane device driver series */
WORD BPDDRevision; /* Backplane device driver revision */
} MVICIPVERSIONINFO;
Return Value
MVI_SUCCESS
version information was read successfully
MVI_ERR_NOACCESS
handle does not have access
Example
MVIHANDLE Handle;
MVICIPVERSIONINFO verinfo;
/* print version of API library */
MVIcip_GetVersionInfo(Handle,&verinfo);
printf("Library Series %d, Rev %d\n", verinfo.APISeries, verinfo.APIRevision);
printf("Driver Series %d, Rev %d\n", verinfo.BPDDSeries,
verinfo.BPDDRevision);