User manual
171
Setting message notification
WndProc()
WM_CREATE
OBRSetScanningNotification
( OBR_MESSAGE, hWnd );
WM_CLOSE
OBROpen( NULL, 0 );
OBRClose();
WM_OBR_SCANNING
WM_CLOSE
Data captured by OBRGets
End
Yes
No
Yes
No
Yes
No
OBR_SUCCESS
Value other than
OBR_SUCCESS
Process of other message
Figure 5.1 Flowchart
1. Notification mode for scanning completion is set to the message output with
OBRSetScanningNotification func
tion. At the same time, window handle of the destination
which the message is sent to is specified.
2. After opening the scanner with OBROpen func
tion, the flow waits until a scanning completion
notification message is issued.
3. After receiving the message, the wParam parameter of the message is checked for its value. If
scanning is succeeded, data output to each output destination will be processed.
4. Carry out OBRClose funct
ion to close the scanner.