DTWAIN_RangeGetValueLong

Top  Previous  Next

The DTWAIN_RangeGetValueLong function gets either the low, high, step, default, or current values in the DTWAIN_RANGE.

 

DTWAIN_BOOL DTWAIN_RangeGetValueLong (

DTWAIN_RANGE

Range,

LONG

WhichValue,

LPLONG

lpValue );

 

Parameters

Range

A valid DTWAIN_RANGE type.

 

WhichValue

Value to retrieve.

 

lpValue

Address of where retrieved value will be copied.

 

 

Return Values

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

 

Comments

The DTWAIN_RangeGetValueFloat is a specialized version of DTWAIN_RangeGetValue, where the value returned is a LONG. This function should only be used on DTWAIN_RANGE created with the DTWAIN_RANGELONG option (see DTWAIN_RangeCreate).


TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

See Also

DTWAIN Range Functions