GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / TwainUnloadSourceManager Method / TwainUnloadSourceManager(Int32) 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
TwainUnloadSourceManager(Int32) Method
In This Topic
Unloads the Data Source Manager and release the TWAIN32.DLL.
Syntax
'Declaration
 
Public Overloads Function TwainUnloadSourceManager( _
   ByVal HANDLE As Integer _
) As Boolean
public bool TwainUnloadSourceManager( 
   int HANDLE
)
public function TwainUnloadSourceManager( 
    HANDLE: Integer
): Boolean; 
public function TwainUnloadSourceManager( 
   HANDLE : int
) : boolean;
public: bool TwainUnloadSourceManager( 
   int HANDLE
) 
public:
bool TwainUnloadSourceManager( 
   int 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

True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
Remarks
This will fail if the Source Manager is open. If success, the twain state must be 1 (TWAIN_PRESESSION). To get the TWAIN state, use the TwainGetState() method.
See Also