
Programming Manual
81
API_SCAN Related Functions
API_Register
Register the application to SCANAPIAX.dll, so that SCANAPIAX.dll can communication with
the application. It will also open scanner module to working mode.
BOOL
API_Register
{
HWND
hwnd
}
Parameters
hwnd
[in] the window handle which library will send message to report all activities of
scanner.
Return Values
Return TRUE if the operation is successful, otherwise return FALSE.
Remarks
The application must call API_Unregister to unregister from the dll and close scanner
module after done with scanner. The messages can be one of the followings:
SM_DATA_READY : Indicates that scan data is successfully reading and
ready to retrieve.
SM_ERROR_SYS : Indicates a system error, which is caused by calling
system function. Call API_GetSysError to get the
system error code.
SM_ERROR_API : Indicates an error. Call API_GetError to get error code.
Example
if(!API_Register(theApp.GetMainWnd()->m_hWnd))
AfxMessageBox(_T("API_Register FAIL!!"));
Requirements
OS Versions:
Windows CE 5.0 and later.
Header:
scanapiax.h
Link Library:
scanapiax.lib
Link DLL:
scanapiax.dll
Device:
PA60
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 ...