Pt_getbarcodedata – Argox PT-9130 User Manual

Page 214

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 207

PT_GetBarcodeData

To Get Barcode data and barcode 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 maximum buffer size

Returned Values

Returning TRUE if the operation is successful, otherwise, return FALSE.

Remarks

If the buffer size is smaller than scanned data, this function will return 0 and the parameter uiMaxBufferLen will

return the length of the scanned barcode data.

Example

if(PT_CheckBarcodeData()){

if(PT_GetBarcodeData(&uiBarType, pBarData, &uiMaxLen)){

for(i = 0 ; i < strlen(pBarData) ; i++)

m_strScanData += *(pBarData + i);

}

else

m_strScanData = _T("Can't get scan data");

}

else

m_strScanData = _T("No Scan Data");

Requirements

OS Versions: Windows CE 6.0 or beyond.

Advertising