EasyManuals Logo
Home>Unitech>PDA>PA600

Unitech PA600 Programming Manual

Unitech PA600
41 pages
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #41 background imageLoading...
Page #41 background image
-
9. Useful function call - without include SysIOAPI.DLL
9.1. Warm-boot, Cold-boot and power off
#include <pkfuncs.h>
#include "oemioctl.h"
// Warn boot
KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);
// Cold boot
KernelIoControl(IOCTL_COLD_BOOT, NULL, 0, NULL, 0, NULL);
// Power off
{
DWORD dwExtraInfo=0;
BYTE bScan=0;
keybd_event( VK_OFF, bScan, KEYEVENTF_SILENT, dwExtraInfo );
keybd_event( VK_OFF, bScan, KEYEVENTF_KEYUP, dwExtraInfo );
}
9.2. Get Device ID
In PA600, an unique ID had been burnt into terminal, user can check it by pressing
“Func”+”9”.
The sample code for read device ID as follow,
////////////////////////////////////////////////////////////////
HWND hDeviceId = GetDlgItem(hWnd, IDC_DEVICEID);
PDEVICE_ID pDeviceID = NULL;
TCHAR outBuf[512], szProductID[100], stringBuffer[100];
BYTE szBuff[255];
DWORD bytesReturned;
char platformID[64];
pDeviceID = (PDEVICE_ID)outBuf;
pDeviceID->dwSize = sizeof(outBuf);
if (KernelIoControl(IOCTL_HAL_GET_DEVICEID, NULL, 0, outBuf, sizeof(outBuf), &bytesReturned))
{
// Platform ID
memcpy((PBYTE)platformID, (PBYTE)pDeviceID + pDeviceID->dwPlatformIDOffset, pDeviceID->dwPlatformIDBytes);
// Device ID for WinCE version
memcpy((PBYTE)stringBuffer, (PBYTE)pDeviceID + pDeviceID->dwPresetIDOffset, pDeviceID->dwPresetIDBytes);
swprintf(szProductID, _T("%s"), stringBuffer);
// Device ID for Mobile version
memcpy((PBYTE) szBuff, (PBYTE)pDeviceID + pDeviceID->dwPresetIDOffset, pDeviceID->dwPresetIDBytes);
swprintf(szProductID, TEXT("%X%X%X%X%X%X%X%X"),
szBuff [0], szBuff [1], szBuff [2], szBuff [3], szBuff [4], szBuff [5], szBuff [6], szBuff [7]);
}
/////////////////////////////////////////////////////////
The code will have platformID holds Platform ID, and deviceID holds Device ID.

Table of Contents

Other manuals for Unitech PA600

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Unitech PA600 and is the answer not in the manual?

Unitech PA600 Specifications

System Memory IconSystem Memory
SDRAM memory64 MB
Flash ROM128 MB
Flash ROM with WWAN320 MB
Display IconDisplay
display resolution240x320 QVGA
display typeColor Transflective TFT
touch screenYes
Power IconPower
main battery3.7V 1950mAh Li-Ion Battery Pack
backup batteryOne Rechargeable Ni-MH Backup Battery
power sourceMain Battery
Operating Environment IconOperating Environment
operating temperature32ºF to 122ºF (0ºC to 50ºC)
storage temperature-4ºF to 140ºF (-20ºC to 60ºC)
relative humidity5% ~ 95% (non-condensing)
Weight and Dimensions IconWeight and Dimensions
weight290g with Battery & Scan Engine
length149.5 mm
height26.6 mm

Related product manuals