9.1
S
CAN
E
NABLE
CHS()
Prototype:
SCANAPI_API SCAN_RESULT ScanEnableCHS(HWND hWnd, UINT wmCHSStatus);
Purpose:
This function activates the Cordless Scanner and loads its driver.
Arguments:
[in] hWnd is the handle of the CS status window
– receives CS notification messages
[in] wmCHSStatus is the user status of the CS
– it
notifies the state of dynamic reconnection, if the
connection is lost, or reconnected. Generally this is a user defined message handle.
Notes:
This function is only relevant to
CS. This function will send a wmInsertion message to the main
window.
Returns:
SR_SUCCESS
The operation completed successfully.
SR_INVALID_WMCHSSTATUS
The wmCHSStatus message is not within the allowed User message range.
SR_NOT_INITIALIZED
The scanner has not been initialized
SR_INTERNAL_FAILURE
The CHS driver failed to load.
April 8, 2010
Page 61
Document#: 6410-00147 K
Revision 2.28