SetDataSource

#include "BiTwain.h"

 

int CALLBACK SetDataSource(LPSTR szSource)

Description

This function specifies the data source. To get current data source use GetCurrentDS function. When you set data source, the scanning function will use this data source for scanning. This function is usefull to change DS programaticallly, whitout user interface.

Parameters

LPSTR

szSource

Contains the name of the current DS.

Return values

Returns TW_OK on success, otherwise the error code.

Requirements

Header :     Declared in BiTwain.h; include BiTwain.h.

Library :    Use BiTwain.lib.

DLLs :       BiTwain.dll.