FFTwainOpen
open TWAIN data source manager

Prototype

Put the following prototype in the prototypes section of the application program header file:

bool ( __stdcall *pFFTwainOpen )( HWND );

Purpose

Open TWAIN data source manager, if installed. It does the following:
  • load TWAIN32.DLL if it exists
  • load the addresses of the DSM entry
  • prepare the application identity
  • open the user desired data source

Description and use

Just call the function before sending any command to any TWAIN scanner attached to the fast USB chain.

Specification

None.

Parameters
  • handle to the window of the calling program: it is used to return error messages in case any of the operations described above fails

Return value

The function does not return any value. In the future it will return:
  • true: TWAIN correctly initialized
  • false: an error occurred, and an error message is displayed; the message describes the kind of error that occurred

Application examples

See also

Notes

The actual speed of the scanning operations depend on the USB port that you have attached the scanner to. Old USB 1.x serial ports make the scanner work slower. To get the maximum speed from the scanner you must attach it to an USB 2.0 port (fast USB).