TIETwainParams.GetDefaultSource
Declaration
function GetDefaultSource(): integer;
Description
Returns the default system Twain source.
The default ImageEn source has the index 0, but this should be different from the system's default source.
Result is -1 if no Twain sources exist on the system
// set system default source as current ImageEn Twain source
ImageEnView1.IO.TwainParams.SelectedSource := ImageEnIO.TwainParams.GetDefaultSource;