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: (.NET 4.5.2, x86)
public delegate ushort TwainDeviceCallbackEventHandler(
	TwainController controller,
	TwainDeviceCallbackEventArgs e


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

Return Value

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