Click or drag to resize

TwainDeviceCallbackEventHandler Delegate

This delegate is used with the RegisterTwainCallback(TwainDeviceCallbackEventHandler) method to allow the use of a callback instead of a message loop for device communication.

This feature is only available when using TWAIN 2.0 or higher.

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public delegate ushort TwainDeviceCallbackEventHandler(
	TwainController controller,
	TwainDeviceCallbackEventArgs e
)

Parameters

controller
Type: Atalasoft.TwainTwainController
The TwainController that received the callback.
e
Type: Atalasoft.TwainTwainDeviceCallbackEventArgs
A TwainDeviceCallbackEventArgs containing information for this callback.

Return Value

Type: UInt16
The return code to send back to the driver.
Remarks
The callback must return quickly. If a process is going to take time, it must be performed in a separate thread.
See Also