DTWAIN_GetActiveDSMVersionInfo

DTWAIN_GetActiveDSMVersionInfoA

DTWAIN_GetActiveDSMVersionInfoW

Top  Previous  Next

The DTWAIN_GetActiveDSMVersionInfo gets the version information of the TWAIN Data Source Manager that is in use.

 

LONG DTWAIN_GetActiveDSMVersionInfo (

LPTSTR

szBuffer,

LONG

Maxlen );

 

Parameters


szBuffer

Specifies the address of the character buffer to store the version information.  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_GetActiveDSMVersionInfoA

Unicode version:

DTWAIN_GetActiveDSMVersionInfoW

 

 

Comments

The DTWAIN_GetActiveDSMVersionInfo function fills szBuffer with the version information of the active TWAIN Data Source Manager (DSM) that is currently being used.

 

If szBuffer is NULL, the length of the DSM 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