DTWAIN_UseMultipleThreads
The DTWAIN_UseMultipleThreads function allows an application to call DTWAIN functions in a multithreaded application, where calls to DTWAIN_SysInitialize may be issued multiple times on more than one thread.
LONG DTWAIN_UseMultipleThreads ( BOOL bUseMultipleThreads );
Parameters bUseMultipleThreads If TRUE, allows DTWAIN functions to be called in multiple threads.
Return Values If the function succeeds, a non-zero value is returned. If the function fails, zero (0) is returned.
Comments
The DTWAIN_UseMultipleThreads function must be called to ensure that DTWAIN will work properly if used in multiple threads.
For more information on multithreading issues with DTWAIN, please see DTWAIN Multithreading Issues
TWAIN State Transitions
Prerequisite Calls None.
Optional Prerequisite Calls None.
See Also |