DTWAIN_GetVersionString

Top  Previous  Next

The DTWAIN_GetVersionString gets the version of DTWAIN that is running as a text string.

 

LONG DTWAIN_GetVersionString (

LPTSTR

lpszBuffer,

LONG

lBufSize );

 

Parameters

lpszBuffer

Pointer to string buffer that will be filled with the DTWAIN version information, or NULL.

 

lBufSize

Maximum size of the buffer in characters pointed to by lpszBuffer.

 

 

Return Values

The number of characters copied to lpszBuffer, or if lpszBuffer is NULL, the number of characters needed to store the entire string (including NULL terminator).

 

Character specific version

ANSI version:

DTWAIN_GetVersionStringA

Unicode version:

DTWAIN_GetVersionStringW

 

Comments

This function returns the DTWAIN version information in the form of a text string.  The lpszBuffer is the address of the buffer that will be filled in.  If lpszBuffer is NULL or 0, DTWAIN_GetVersionString returns the number of characters needed to store the entire string information plus 1 ( for the NULL terminator character).

 

The lBufSize is the maximum number of characters pointed to by lpszBuffer.  This argument is ignored if lpszBuffer is NULL.

 

 

TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

None