Terminal Server Issues

Top  Previous  Next

If your DTWAIN application will be targeted to a Terminal Server environment, we recommend the following:

 

1) Make sure the application is not Terminal-Server aware.

 

This allows you to place the TWAIN Data Source Manager in each user's WINDOWS directory, otherwise the TWAIN DSM that is loaded is the server's version, and this may not have the desired results.

 

When building your application using environments such as Visual Studio from Microsoft, there are options to generate Termimal Server programs or non-Terminal Server aware programs in the Linker settings of the Visual Studio IDE.  Otherwise there are third-party PE Editors such as NTCore's Explorer Suite that can set the PE header to have a program become Terminal Server or non-Terminal Server aware.

 

 

2) Make sure the search order for the TWAIN DSM is DTWAIN_TWAINDSMSEARCH_W.

 

This enforces that the TWAIN Data Source Manager will be only searched in the user's WINDOWS directory and will not load any other DSM file if found in another directory.  See the DTWAIN_SetDSMSearchOrder function for more details.

 

The above are recommendations.  If they do not fit with your application's requirements, you can change them to fit your application's needs.