DTWAIN_SysInitializeNoBlocking

Top  Previous  Next

The DTWAIN_SysInitializeBlocking function initializes the DTWAIN DLL for use with the application.

 

HANDLE DTWAIN_SysInitializeNoBlocking( );

 

Parameters

None.

 

Return Values

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

 

Comments


The DTWAIN_SysInitializeNoBolocking works exactly the same as DTWAIN_SysInitialize, with the difference being that this function only sets an error code if the twain resource file twaininfo.txt is not found or has been corrupted, instead of a modal dialog box indicating there is an error processing the twaininfo.txt file.  


Please note that the twaininfo.txt file is only used for specialized user cases and is normally not used by the typical DTWAIN application.  For normal DTWAIN initialization, the twaininfo.txt file is not required, thus DTWAIN_SysInitializeNoBlocking works exactly the same as DTWAIN_SysInitialize.


To get the error code, call DTWAIN_GetLastError.

 

TWAIN State Transitions

State 1

 

Prerequisite Calls

None.

 

Optional Prerequisite Calls

None.

 

See Also DTWAIN_SysInitialize, DTWAIN_SysDestroy, DTWAIN_IsTwainAvailable, DTWAIN_IsInitialized