DTWAIN_SysInitializeLibEx

Top  Previous  Next

The DTWAIN_SysInitializeLibEx function initializes the DTWAIN static libraries for use.

 

LONG DTWAIN_SysInitializeLibEx (

HINSTANCE

hInst,

LPCSTR

szINIPath );

 

Parameters

hInst

Instance handle of resource module.

 

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.

 

Comments

 

The DTWAIN_SysInitializeLibEx function does exactly the same as the DTWAIN_SysInitializeLib 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