The LEADTOOLS Twain Thunk was created to enable you to interact with Win32 TWAIN drivers from a 64-Bit process. For instance, a Scanner driver that is ONLY supported on a 32-Bit environment will not be able to interact with your scanner from a 64-Bit process application. The LEADTOOLS Twain Thunk Server will allow you to do so.
To use the LEADTOOLS TWAIN Thunk Server in your .NET application, pass the UseThunkServer flag to the flags parameter to the TwainSession.Startup or TwainSession.Startup2 methods. The rest of your application code remains unaffected.
Additional files need to be included in distribution files for your application when using the LEADTOOLS TWAIN Thunk Server framework:
File | Description |
---|---|
LtThunkServer.exe |
COM+ Thunk Server |
lttwnthunku.dll |
Helper for LEADTOOLS TWAIN library |
LtThunkutlu.dll |
32-Bit helper DLL for the LEADTOOLS CDLL framework |
LtThunkutlx.dll |
64 bit helper DLL for the LEADTOOLS CDLL framework |
Lttwnu.dll |
32-Bit TWAIN library |
Ltkrnu.dll |
32-Bit kernel library |
Ltfilu.dll |
32-Bit filter library |
Lfbmpu.dll |
32-Bit BMP filter library |
Lfcmpu.dll |
32-Bit CMP filter library |
Lfrawu.dll |
32-Bit RAW filter library |
Lftifu.dll |
32-Bit TIF filter library |
The LEADTOOLS TWAIN Thunk Server is based on COM+ technology. Register the server as part of the setup procedure for your application. Perform the following steps to register the LEADTOOLS TWAIN Thunk Server that ships with the LEADTOOLS .NET Class Library:
Run the Windows Command prompt with Administrator privileges
Run the following command:
[LEADTOOLS Installation Folder]"\Bin\Common\LEADTOOLS Thunk\LtThunkServer.exe" /regserver
These exact steps are used by the LEADTOOLS Installation program during setup. Your application's setup should do something similar.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document