
Programming Manual
114
PT_GetBarcodeData
Get Barcode data and type from system buffer.
BOOL
PT_GetBarcodeData
{
UINT *
uiBarType
,
Char *
pBuffer
,
UINT *
uiMaxBufferLen
}
Parameters
uiBarType
[out] barcode type.
pBuffer
[out] buffer for storing scanned data..
uiMaxBufferLen
[in/out] The max buffer size
Return Values
Return TRUE if the operation is successful, otherwise return FALSE.
Remarks
If the buffer size is less than scan data, function return 0 and the parameter
uiMaxBufferLen return the size of barcode data.
Example
if(PT_CheckBarcodeData()){
if(PT_GetBarcodeData(&uiBarType, pBarData, &uiMaxLen)){
for(i = 0 ; i < strlen(pBarData) ; i++)
m_strSc= *(pB i);
}
else
m_strScanData = _T("Can't get scan data");
}
else
m_strScanData = _T("No Scan Data");
Requirements
OS Versions:
Windows CE 5.0 and later.
Summary of Contents for PA-60
Page 1: ...PA 60 Mobile Computer Programming Manual DOC NO UM PA605 02 June 2012 Version 1 0 ...
Page 57: ...Programming Manual 53 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Page 72: ...Programming Manual 68 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Page 91: ...Programming Manual 87 Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...