TwainSelectSource

Presents a dialog box containing the names of all Twain data sources installed on the computer, and lets the user select one. This source then becomes the one that all other Twain functions operate upon (until TwainSelectSource is called again to pick out another source).

Synopsis

error = TwainSelectSource()

Returns

An empty string if a data source is successfully selected, or an error code if the user cancels or an error.

Notes

If TwainOpenDSM has not been previously called to open the Data Source Manager, then an error occurs. TwainQuery can be called to check whether the data source manager is open.

Any currently open data source (or the default source if none is open) is initially chosen in the list.

If TwainSelectSource is not called prior to TwainAcquire, then the default twain source is automatically used.