TWAIN Programming Guide

Supported Triplets

Triplet that is Sent from Application to Data Source


DG_CONTROL / DAT_IDENTITY

MSG_CLOSEDS Close the session between an application and a source
MSG_GETDEFAULT Gets the identification information of the system default Source
MSG_GETFIRST Obtain the first source on a list of all Sources that are currently available on the system
MSG_GETNEXT Obtain the remaining source on a list of all Source
MSG_OPENDS Open the session between an application and a source
MSG_USERSELECT Causes the Source Manager to display the Select Source dialog

DG_CONTROL / DAT_PARENT

MSG_CLOSEDSM Close a session with Data Source Manager
MSG_OPENDSM Open and initialize a session with Data Source Manager

DG_CONTROL / DAT_STATUS

MSG_GET Returns the current Condition Code for the Source Manager



Triplets from Application to Data Source


DG_CONTROL / DAT_CAPABILITY

MSG_GET Returns the Source’s Current, Default and Available Values for a specified capability
MSG_GETCURRENT Returns the Source’s Current Value for the specified capability
MSG_GETDEFAULT Returns the Source’s Default Value for the specified capability
MSG_RESET Change the Current Value of the specified capability back to its power-on value and return the new Current Value
MSG_SET Changes the Current Value(s) and Available Values of the specified capability to those specified by the application



DG_CONTROL / DAT_CUSTOMDATA

MSG_GET Get current scan settings by text data
MSG_SET Specify scan setting using text data



DG_CONTROL / DAT_EVENT

MSG_PROCESSEVENT Forwards events from the application to Sourcesr



DG_CONTROL / DAT_PENDINGXFERS

MSG_ENDXFER To cancel or terminate a transfer
MSG_GET Returns the number of transfers the Source is ready to supply to the application
MSG_RESET Sets the number of pending transfers in the Source to zero



DG_CONTROL / DAT_SETUPFILEXFER

MSG_GET Returns the file related information like target folder and filename
MSG_SET Set the file related information like target folder and filename



DG_CONTROL / DAT_SETUPMEMXFER

MSG_GET Returns the Source’s preferred, minimum, and maximum allocation sizes for transfer memory buffers



DG_CONTROL / DAT_USERINTERFACE

MSG_DISABLEDS Causes the Source’s user interface to be lowered
MSG_ENABLEDS Causes to place the source into a ready to acquire condition, to raise the Sources built-in user interface and to terminate Source’s acceptance of “set capability” requests from the application
MSG_ENABLEDSUIONLY Causes to show Sources user interface for setting only



DG_IMAGE / DAT_IMAGEINFO

MSG_GET Provides to the application general image description information about the image about to be transferred



DG_IMAGE / DAT_IMAGELAYOUT

MSG_GET Describes both the size and placement of the image on the original “page”
MSG_GETDEFAULT Returns the default information on the layout of an image
MSG_RESET Sets the image layout information for the next transfer to its default settings
MSG_SET Sets the layout for the next image transfer



DG_IMAGE / DAT_IMAGEFILEXFER

MSG_GET Initiates the transfer of an image from the Source to the application via the file transfer mechanism



DG_IMAGE / DAT_IMAGEMEMXFER

MSG_GET Initiates the transfer of an image from the Source to the application via the Buffered Memory transfer mechanism



DG_IMAGE / DAT_IMAGENATIVEXFER

MSG_GET Causes the transfer of an image’s data from the Source to the application, via the Native transfer mechanism