DTWAIN_RangeSetValue
|
The DTWAIN_RangeSetValue function sets either the low, high, step, default, or current values in the DTWAIN_RANGE.
DTWAIN_BOOL DTWAIN_RangeSetValue (
Parameters Range A valid DTWAIN_RANGE type.
WhichValue Range value to set
lpValue Address of the new value to set in the DTWAIN_RANGE
Return Values TRUE if successful, FALSE otherwise. If the function returns FALSE, call DTWAIN_GetLastError() to get extended information.s
Comments The DTWAIN_RangeSetValue function sets a value in the DTWAIN_RANGE Range. The WhichValue denotes the value in the DTWAIN_RANGE that is to be set. The WhichValue can be one of the following:
The lpValue is the address of the value that is to be used to set in the DTWAIN_RANGE. Since DTWAIN_RANGEs can differ in data types, the caller to this function is responsible in seeing that the data type residing at lpValue matches the data type stored in Range.
TWAIN State Transitions None.
Prerequisite Function Call(s)
See Also |