TwainCloseSourceManager(IntPtr) Method
Closes the Data Source Manager.
If a source is open, disables and closes it as needed.
public bool TwainCloseSourceManager(
IntPtr HANDLE
)
public function TwainCloseSourceManager(
HANDLE: IntPtr
): Boolean;
public function TwainCloseSourceManager(
HANDLE : IntPtr
) : boolean;
public: bool TwainCloseSourceManager(
IntPtr HANDLE
)
public:
bool TwainCloseSourceManager(
IntPtr HANDLE
)
'Declaration
Public Overloads Function TwainCloseSourceManager( _
ByVal HANDLE As IntPtr _
) As Boolean
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.
If the Source Manager is not open, does nothing and returns TRUE.