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(IntPtr) Method

In This Topic
Unloads the Data Source Manager and release the TWAIN32.DLL.
Syntax
'Declaration

 

Public Overloads Function TwainUnloadSourceManager( _

   ByVal HANDLE As IntPtr _

) As Boolean
public bool TwainUnloadSourceManager( 

   IntPtr HANDLE

)
public function TwainUnloadSourceManager( 

    HANDLE: IntPtr

): Boolean; 
public function TwainUnloadSourceManager( 

   HANDLE : IntPtr

) : boolean;
public: bool TwainUnloadSourceManager( 

   IntPtr HANDLE

) 
public:

bool TwainUnloadSourceManager( 

   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

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