DTWAIN_GetShortVersionString

DTWAIN_GetShortVersionStringA

DTWAIN_GetShortVersionStringW

Top  Previous  Next

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

 

LONG DTWAIN_GetShortVersionString (

LPTSTR

lpszBuffer,

LONG

lBufSize );

 

Parameters

lpszBuffer

Pointer to string buffer that will be filled with the short DTWAIN version information.   To ignore this value, this should be 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_GetShortVersionStringA

Unicode version:

DTWAIN_GetShortVersionStringW

 

Comments

This function returns the short 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, 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.

 

The short version string will have this form:

MajorVersion.MinorVersion.PatchVersion


For example:

"5.7.1"


would be the short version name.

 

TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

None


See Also

Retrieving General DTWAIN Information