
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
Handle returned by previous call to ADM_Open
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
The version information was read successfully.
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);
Comentarios a estos manuales