DTWAIN_SetTempFileDirectory

Top  Previous  Next

The DTWAIN_SetTempFileDirectory sets the directory that will be used by DTWAIN when creating temporary files.

 

DTWAIN_BOOL DTWAIN_SetTempFileDirectory ( LPCTSTR lpszDir );

 

 

Parameters

lpszDir

   Specifies the full path of the directory where DTWAIN will create temporary files.

 

Return Values

If the function succeeds, TRUE is returned.  If unsuccessful, FALSE is returned.

 

Character specific version

ANSI version:

DTWAIN_SetTempFileDirectoryA

Unicode version:

DTWAIN_SetTempFileDirectoryW

 

Comments

DTWAIN_SetTempFileDirectory specifies the directory, lpszDir, where DTWAIN will create temporary files.  These files are usually created by DTWAIN when creating multipage image files.  The files that are created are destroyed by DTWAIN when no longer necessary.

 

By default, the directory that DTWAIN writes to is the directory specified by the TMP. TEMP, or Windows directory.  To change where DTWAIN writes to, call DTWAIN_SetTempFileDirectory with the full path name of the directory to use.  The directory specified by lpszDir must already exist before calling function DTWAIN_SetTempFileDirectory.

 

To get the current directory name, call DTWAIN_GetTempFileDirectory.

 

TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize