GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / TwainGetCurrentSourceName Method / TwainGetCurrentSourceName(IntPtr) Method
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.





In This Topic
TwainGetCurrentSourceName(IntPtr) Method
In This Topic
Returns the name of the opened source.
Syntax
'Declaration
 
Public Overloads Function TwainGetCurrentSourceName( _
   ByVal HANDLE As IntPtr _
) As String
public string TwainGetCurrentSourceName( 
   IntPtr HANDLE
)
public function TwainGetCurrentSourceName( 
    HANDLE: IntPtr
): String; 
public function TwainGetCurrentSourceName( 
   HANDLE : IntPtr
) : String;
public: string* TwainGetCurrentSourceName( 
   IntPtr HANDLE
) 
public:
String^ TwainGetCurrentSourceName( 
   IntPtr HANDLE
) 

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.

Return Value

The current source name.
Remarks
Before using this method check that the TWAIN state is >= 4 (TWAIN_SOURCE_OPEN) To get the TWAIN state, use the TwainGetState() method.
See Also