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.  Otherwise the return value is FALSE

 

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.

 

Note that changing the default Source using DTWAIN_SetDefaultSource also changes the WIN.INI values for the [TWAIN] section and DEFAULT_SOURCE settings.  DTWAIN_SetDefaultSource places the proper values for these WIN.INI settings for the specified Source.

 

Prerequisite Calls

DTWAIN_SysInitialize

Source Selection Functions

 

Optional Prerequisite Calls

None.

 

See Also

Source Selection Functions