Argox pt-80 Mode D'Emploi
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 4.2 and later.
Header: scanapiax.h
Link Library: scanapiax.lib
Link DLL: scanapiax.dll
Device: PT80
Device: PT80
Programming Manual 32