DTWAIN_SelectDefaultSource

Top  Previous  Next

The DTWAIN_SelectDefaultSource function selects the default TWAIN Source.

 

DTWAIN_SOURCE   DTWAIN_SelectDefaultSource( );

 

Parameters

None.

 

Return Values

If successful, the return value is a non-zero DTWAIN_SOURCE handle to the selected Source.  Otherwise NULL is returned.

 

Comments

The DTWAIN_SelectDefaultSource function selects the default TWAIN Source, or if there is only one Source, DTWAIN selects that particular Source automatically. The default TWAIN Source is always the last one that was selected by a previous TWAIN session.  Unlike DTWAIN_SelectSource the 'Select Source' dialog that TWAIN provides will not be shown when this function is called.

 

TWAIN State Transitions

Remains in State 3.

 

Prerequisite Calls

DTWAIN_SysInitialize

 

Optional Prerequisite Calls

None.

 

See Also

Source Selection Functions