GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainCloseSource Method





In This Topic
TwainCloseSource Method (GdPictureImaging)
In This Topic
Closes the open Data Source, if any. If the source is enabled, disables it first.
Syntax
'Declaration
 
Public Function TwainCloseSource() As Boolean
 

Return Value

True if success, else False. If there is not an open source, does nothing and returns TRUE.
Remarks
This method should be called only if the TWAIN state is 4 (TWAIN_SOURCE_OPEN) or 5 (TWAIN_SOURCE_ENABLED). If success, the TWAIN state must be <= 3 (TWAIN_SM_OPEN). To get the TWAIN state, use the TwainGetState() method.
See Also