This function loads the TWAIN DLL.
Parameters
Name | Explanation |
---|---|
FileName | The full path to the TWAIN DLL |
Return Value
Returns the True (nonzero) if successful, otherwise returns False (0).
Explanation
The IKScanLoadTwain function loads the TWAIN DLL.
When using the 32 bit Twain_32.dll (In Windows Folder) or the 64 bit TWAINDSM.dll (In Windows\System32 Folder) it is not necessary to use this function to load the TWAIN DLL. The ImageKit will do that internally. However, if you are using the 32 bit DLL TWAINDSM.dll, then you must load that dll using this function.
After using IKScanLoadTwain, be sure to use IKScanInitialize.
You must always use IKScanLoadTwain and IKScanFreeTwain in tandem, however before executing IKScanFreeTwain, be sure to execute IKScanTerminate.
For example,
Execute these functions is the following sequence:
IKScanLoadTwain
IKScanInitialize
......... 'other scan functions
.........
.........
IKScanTerminate
IKScanFreeTwain