'Declaration
Public Overloads Function TwainOpenSource( _ ByVal HANDLE As IntPtr, _ ByVal SourceName As String _ ) As Boolean
public bool TwainOpenSource( IntPtr HANDLE, string SourceName )
public function TwainOpenSource( HANDLE: IntPtr; SourceName: String ): Boolean;
public function TwainOpenSource( HANDLE : IntPtr, SourceName : String ) : boolean;
public: bool TwainOpenSource( IntPtr HANDLE, string* SourceName )
public: bool TwainOpenSource( IntPtr HANDLE, String^ SourceName )
Parameters
- HANDLE
- A Window Handle IE: Me.Handle. In most applications you can use nothing but on Citrix and WTS, this must be a top-level window or a child of a top level window.
- SourceName
- The name of the source to open.
Return Value
True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode()
methods for diagnosing the error.