DTWAIN_RangeGetNearestValueLong
The DTWAIN_RangeGetNearestValueLong function gets the range value that is closest to a given value.
DTWAIN_BOOL DTWAIN_RangeGetNearestValueLong (
Parameters Range A valid DTWAIN_RANGE type.
ValueIn Value to search for.
pValueOut Address where nearest value will be stored on return of DTWAIN_RangeGetNearestValue.
RoundType Determines whether to round to the nearest range value, round up to the next range value, or round down to the previous range value.
Return Values If the function succeeds, TRUE is returned. If the function fails FALSE is returned.
Comments DTWAIN_RangeGetNearestValueLong is a specialized version of DTWAIN_RangeGetNearestValue that works with DTWAIN_RANGE that stores LONG values. The only difference between DTWAIN_RangeGetNearestValueLong and DTWAIN_RangeGetNearestValue is that the second parameter, ValueIn, is not an address, but the actual LONG value to search for.
TWAIN State Transitions None.
Prerequisite Function Call(s)
See Also |