User manual

35
4.13 OBRSetScanningNotification
This function sets up the notification method for scanning complete via either "Event" or "Window
message".
Notification via Window Message
Window message of WM_OBR_SCANNING(WM_USER+0x530 ) is issued to the specified
window handle.
Notification via Event
Event generated when scanning is complete is "OBRScanningEvent". Since the name is
expressed in Unicode in WindowsCE, it must be specified as TEXT("OBRScanningEvent") in
application program.
See Chapter 5.1 "Scanning Completion Notification for detail.
Calling Sequences
[C++]
int OBRSetScanningNotification(
DWORD dwMode,
HWND hWnd
)
[Visual Basic]
Public Shared Function OBRSetScanningNotification( _
ByVal dwMode As Int32, _
ByVal hWnd As IntPtr _
) As Int32
[C#]
public static Int32 OBRSetScanningNotification(
Int32 dwMode,
IntPtr hWnd
);
Parameters
dwMode
This parameter is for specifying notification mode selecting either of the values listed
below.
OBR_MESSAGE : Notification via window message
OBR_EVENT : Notification via Event
hWnd
This parameter is for specifying handle to which the window message is sent in case where
OBR_MESSAGE is specified in dwMode parameter.