DTWAIN_EndThread

Top  Previous  Next

The DTWAIN_EndThread function is called at the termination of a DTWAIN thread.

 

LONG DTWAIN_EndThread ( LONG DLLHandle );

 

Parameters

DLLHandle

The value returned from DTWAIN_SysInitialize or DTWAIN_SysInitializeEx.

 

Return Values

If the function succeeds, a non-zero value is returned.  If the function fails, zero (0) is returned.

 

Comments

 

The DTWAIN_EndThread function should be called at the end of a DTWAIN thread started with DTWAIN_StartThread.

 

For more information on multithreading issues with DTWAIN, please see DTWAIN Multithreading Issues

 

TWAIN State Transitions

State 1

 

Prerequisite Calls

None.

 

Optional Prerequisite Calls

None.

 

See Also

DTWAIN_SysDestroy, DTWAIN_IsTwainAvailable, DTWAIN_IsInitialized