See Also Examples Applies To
Closes the Data Source Manager, if it is open.
If a source is open, disables and closes it as needed.
Syntax
object.TwainCloseSourceManager (hwnd)
The TwainCloseSourceManager syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| hwnd | Optional. Long. Default value is 0. A Win32 Window Handle. In most applications you can use 0 but on Citrix and WTS, this must be a top-level window or a child of a top level window. |
Returns
Boolean. True if success else False. If the Source Manager is not open, does nothing and returns TRUE.
Remarks
If success, the twain state must be <= 2 (TWAIN_SM_LOADED).
To get the TWAIN state, use the TwainGetState() method.
Category
TWAIN Capability