DTWAIN_SetDefaultSource

Top  Previous  Next

The DTWAIN_SetDefaultSource function sets the default TWAIN Source.

 

DTWAIN_BOOL  DTWAIN_SetDefaultSource ( DTWAIN_SOURCE Source );

 

 

Parameters

Source

A valid DTWAIN_SOURCE

 

Return Values

If successful, the return value is TRUE (1).  Otherwise the return value is FALSE (0).  If the function returns FALSE, call DTWAIN_GetLastError() to get extended information.

 

Comments

DTWAIN_SetDefaultSource sets the TWAIN default source to an open Twain Source denoted by Source. After calling this function, any TWAIN-compliant application will assume that Source is the default source.

 

This function is only available for the 2.x version of the TWAIN Data Source Manager (TWAINDSM.DLL).  The 1.x manager (TWAIN_32.DLL) does not allow setting the default data source.


Prerequisite Calls

DTWAIN_SysInitialize

Source Selection Functions

 

Optional Prerequisite Calls

None.

 

See Also

Source Selection Functions