IsAvailable Example for Visual Basic

Dim RasterTwain As New LEADRasterTwain_U
Dim bTwn As Boolean

bTwn = RasterTwain.IsAvailable(Me.hWnd)
If bTwn Then
	MsgBox "Twain is installed"
Else
	MsgBox "Twain is not installed"
End If