DTWAIN_SysInitializeEx

Top  Previous  Next

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

 

LONG DTWAIN_SysInitializeEx ( LPCTSTR szINIPath );

 

 

Parameters

szIniPath

  Path where DTWAIN32.INI is installed.

 

Return Values

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

 

Character specific version

ANSI version:

DTWAIN_SysInitializeExA

Unicode version:

DTWAIN_SysInitializeExW

 

Comments

The DTWAIN_SysInitializeEx function does exactly the same as the DTWAIN_SysInitialize function.  The szINIPath is the path of where the DTWAIN32.INI file is stored.  By default, the DTWAIN32.INI file must be located in the Windows system directory, however DTWAIN_SysInitializeEx gives you the flexibility to store the DTWAIN32.INI file in any accessible directory.

 

A description of the DTWAIN32.INI file and customization can be found here.

 

TWAIN State Transitions

State 1

 

Prerequisite Calls

None.

 

Optional Prerequisite Calls

None.

 

See Also

DTWAIN_SysDestroy, DTWAIN_IsTwainAvailable, DTWAIN_IsInitialized