DTWAIN_GetSourceVersionNumber

Top  Previous  Next

The DTWAIN_GetSourceVersionNumber gets a Source's major and minor version numbers

 

DTWAIN_BOOL DTWAIN_GetSourceVersionNumber (

DTWAIN_SOURCE

Source,

LPLONG

lpMajor,

LPLONG

lpMinor );

 

Parameters

Source

Specifies a TWAIN Source.

 

lpMajor

Specifies the address of the LONG variable that will receive the Source's major version number.

 

lpMinor

Specifies the address of the LONG variable that will receive the Source's minor version number.

 

Return Values

TRUE if successful, FALSE otherwise.  If the function returns FALSE, call DTWAIN_GetLastError() to get extended information.

 

Comments

The DTWAIN_GetSourceVersionNumber function copies the major and minor version numbers of the Source Source to the LONG variables pointed to by the addresses lpMajor and lpMinor, respectively.

 

TWAIN State Transitions

None.

 

TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

Either of these functions can be used to get the Source:

DTWAIN Source Selection Function

or

DTWAIN_EnumSources

 

See Also

Source Information Functions