Side-connect api miscellaneous functions – ProSoft Technology MVI69-ADM User Manual
Page 326

Side-Connect API Library Functions
MVI-ADM ♦ 'C' Programmable
Developer's Guide
'C' Programmable Application Development Module
Page 326 of 342
ProSoft Technology, Inc.
February 20, 2013
11.9 Side-connect API Miscellaneous Functions
MVIsc_GetVersionInfo
Syntax
int MVIsc_GetVersionInfo(HANDLE handle, MVISCVERSIONINFO *verinfo);
Parameters
handle
Handle returned by previous call to MVIsc_Open
verinfo
Pointer to structure of type MVISCVERSIONINFO
Description
MVIsc_GetVersionInfo retrieves the current version of the API library. The
version information is returned in the structure verinfo.
handle must be a valid handle returned from MVIsc_Open. The
MVISCVERSIONINFO structure is defined as follows:
typedef struct tagMVISCVERSIONINFO
{
WORD APISeries; /* API Series */
WORD APIRevision; /* API Revision */
} MVISCVERSIONINFO;
Return Value
MVISC_SUCCESS
The version information was read successfully.
MVISC_ERR_NOACCESS
handle does not have access
Example
HANDLE Handle;
MVISCVERSIONINFO verinfo;
/* print version of API library */
MVIsc_GetVersionInfo(Handle,&verinfo);
printf("Library Series %d, Rev %d\n", verinfo.APISeries, verinfo.APIRevision);