PT-90 Mobile Computer SDK Programming Manual
180
API_SCAN Related Functions
API_Register
To Register the target application to SCANAPIAX.dll so that SCANAPIAX.dll can communicate with the application. It will also
set the scanning device to working mode.
BOOL
API_Register
{
HWND
hwnd
}
Parameters
hwnd
[in] the window handling the function library will send message to report all activities of the scanning
device.
Returned Values
Returning TRUE if the operation is successful, otherwise, return FALSE.
Remarks
The target application must call API_Unregister to unregister from the dll and close the scanning device after the
action been done. The messages can be one of the following:
SM_DATA_READY : Indicating that the barcode data is successfully read and ready for retrieval.
SM_ERROR_SYS : Indicating a system error is caused by calling system function. Calling
API_GetSysError can get the system error code.
SM_ERROR_API : Indicating an error. Calling API_GetError can get the error code.
Example
if(!API_Register(theApp.GetMainWnd()->m_hWnd))
AfxMessageBox(_T("API_Register FAIL!!"));
Requirements
OS Versions:
Windows CE 6.0 or beyond.
Header:
scanapiax.h
Link Library:
scanapiax.lib
Link DLL:
scanapiax.dll
Device:
PT90