Adm api miscellaneous functions – ProSoft Technology MVI69-ADM User Manual
Page 185

MVI-ADM ♦ 'C' Programmable
Application Development Function Library - ADM API
'C' Programmable Application Development Module
Developer's Guide
ProSoft Technology, Inc.
Page 185 of 342
February 20, 2013
7.9
ADM API Miscellaneous Functions
ADM_GetVersionInfo
Syntax
int ADM_GetVersionInfo(ADMHANDLE adm_handle, ADMVERSIONINFO *adm_verinfo);
Parameters
adm_handle
Handle returned by previous call to ADM_Open
adm_verinfo
Pointer to structure of type ADMVERSIONINFO
Description
ADM_GetVersionInfo retrieves the current version of the ADM API library. The
information is returned in the structure adm_verinfo. adm_handle must be a valid
handle returned from ADM_Open.
The ADMVERSIONINFO structure is defined as follows:
typedef struct
{
char APISeries[4];
short APIRevisionMajor;
short APIRevisionMinor;
long APIRun;
}ADMVERSIONINFO;
Return Value
ADM_SUCCESS
The version information was read successfully.
ADI_ERR_NOACCESS
adm_handle does not have access
Example
ADMHANDLE adm_handle;
ADMVERSIONINFO verinfo;
/* print version of API library */
ADM_GetVersionInfo(adm_handle, &adm_version);
printf("Revision %d.%d\n", verinfo.APIRevisionMajor, verinfo.APIRevisionMinor);