DTWAIN_GetLibraryPath

DTWAIN_GetLibraryPathA

DTWAIN_GetLibraryPathW

Top  Previous  Next

The DTWAIN_GetLibraryPath gets the full path name of the DTWAIN DLL that is currently being used.

 

LONG DTWAIN_GetLibraryPath (

LPTSTR

szBuffer,

LONG

Maxlen );

 

Parameters


szBuffer

Specifies the address of the character buffer to store the library path name.  This parameter can also be NULL.

 

MaxLen

Specifies the maximum number of characters to copy to szBuffer.

 

 

Return Values

If the function succeeds, the number of characters copied to szBuffer is returned.  If the function fails, DTWAIN_FAILURE1 is returned.

 

Character specific version

ANSI version:

DTWAIN_GetLibraryPathA

Unicode version:

DTWAIN_GetLibraryPathW

 

 

Comments

The DTWAIN_GetLibraryPath function fills szBuffer with the full path of the DTWAIN DLL that is currently being used.

 

If szBuffer is NULL, the length of the library path, plus 1 for the trailing NULL, is returned.  The MaxLen argument is ignored and no characters are copied to szBuffer. You can use this method to determine the total number of characters needed to store the entire name.

 

 

TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

None.


See Also

Retrieving General DTWAIN Information