![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/6/cd/6cdd8c80-ce60-48ad-81ee-c40b6d52dfda/6cdd8c80-ce60-48ad-81ee-c40b6d52dfda-bge8.png)
C-8 Version Control API
MX3-CE Reference Guide E-EQ-MX3CERG-A-ARC
Version Control API
OAL Version
There is an OEM API call to get the current OAL version information.
typedef struct tagOemVerInfo {
int cboemverinfo;
// sizeof (tagOemVerInfo);
unsigned short oemverinfover;
// version # of version info structure
char sig[8];
// "ACCELVER"-Accelent Systems Signature
char id;
// 'B' = boot loader, 'N' = CE image
char tgtcustomer[24];
// _TGTCUSTOMER - customer name
char tgtplat[24];
// _TGTPLAT - platform name
char tgtplatversion[8];
// _TGTPLATVERSION - platform version
char tgtcputype[8];
// _TGTCPUTYPE - CPU type
char tgtcpu[12];
// _TGTCPU - CPU name
char tgtcoreversion[8];
// _TGTCOREVERSION - ASI software core version
char date[12];
// __DATE__ - build date
char time[12];
// __TIME__ - build time
} OEMVERSIONINFO, *POEMVERSIONINFO;
#define IOCTL_HAL_GET_OAL_VERINFO 0x1012000
OEMVERSIONINFO buf;
DWORD len;
if (!KernelIoControl(IOCTL_HAL_GET_OAL_VERINFO, NULL, 0, &buf,
sizeof(buf), &len))
printf(“Kernel IOCTL failed\n”);
else
printf(L" version %S %S %S", buf.tgtcoreversion,
buf.date, buf.time);
Bootloader Version
There is an OEM API call to get the current bootloader version information..
#define IOCTL_HAL_GET_BOOTLOADER_VERINFO 0x1012004
OEMVERSIONINFO buf;
DWORD len;
if(!KernelIoControl(IOCTL_HAL_GET_BOOTLOADER_VERINFO, NULL, 0,
&buf, sizeof(buf), &len))
printf(“Kernel IOCTL failed\n”);
else
printf(L" version %S %S %S", buf.tgtcoreversion,
buf.date, buf.time);