Unitech PA960 User Manual Page 95

  • Download
  • Add to my manuals
  • Print
  • Page
    / 98
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 94
-
12 Get OEM Info
In HT6xx/PA96x, an OEM ID had been burnt into terminal, user can check it by pressing
“Func”+”9”.
The sample code for read OEM ID as follow,
////////////////////////////////////////////////////////////////
{
TCHAR szBuff[500];
ZeroMemory(szBuff, sizeof(szBuff));
SystemParametersInfo(SPI_GETOEMINFO, 500, (LPVOID)szBuff, 0);
MessageBox(szBuff);
}
/////////////////////////////////////////////////////////
13 Get firmware and bootloader version info
////////////////////////////////////////////////////////////////
{
DEVICE_CONFIG cfg;
if (KernelIoControl(IOCTL_GET_DEVICE_CONFIG, NULL, 0, &cfg, sizeof(cfg), NULL))
{
//Get OS Version
mbstowcs(stringBuffer, cfg.swVersion, strlen(cfg.swVersion));
swprintf(szProductID, _T("OS version : %s"), stringBuffer);
Show(szProductID);
//Get Bootloader Version
memset (stringBuffer, 0, sizeof(stringBuffer));
mbstowcs(stringBuffer, cfg.bootloadversion, strlen(cfg.bootloadversion));
wsprintf(szProductID, _T("Bootloader version : %s"), stringBuffer);
Show(szProductID);
}
}
/////////////////////////////////////////////////////////
Page view 94
1 2 ... 90 91 92 93 94 95 96 97 98

Comments to this Manuals

No comments