TwainControllerRegisterTwainCallback Method |
Sets up a callback for TWAIN device messages instead of using the traditional message loop. This should only be
called when using the TwainController directly; the Device object automatically
handles the callback.
The callback feature is only supported when using the TWAIN 2.0 Data Source Manager
Namespace:
Atalasoft.Twain
Assembly:
Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.5.0.5.0.230 (.NET 4.6.2, x86)
Syntaxpublic TwainReturnCode RegisterTwainCallback(
TwainDeviceCallbackEventHandler callback
)
Public Function RegisterTwainCallback (
callback As TwainDeviceCallbackEventHandler
) As TwainReturnCode
Parameters
- callback
- Type: Atalasoft.TwainTwainDeviceCallbackEventHandler
An event handler to use for the callback.
Return Value
Type:
TwainReturnCode
Remarks
See Also