DTWAIN_RangeGetAll

Top  Previous  Next

The DTWAIN_RangeGetAll function gets the low, high, step, default, and current values in the DTWAIN_RANGE.

 

DTWAIN_BOOL DTWAIN_RangeGetAll (

DTWAIN_RANGE

Range,

LPVOID

lpMin

LPVOID

lpMax

LPVOID

lpStep

LPVOID

lpDef

LPVOID

lpCur );

 

Parameters

Range

A valid DTWAIN_RANGE type.

 

lpMin

Address of Minimum value or NULL

 

lpMax

Address of Maximum value or NULL

 

lpStep

Address of Step value or NULL

 

lpDef

Address of default value or NULL

 

lpCur

Address of current value or NULL

 

Return Values

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

 

Comments

The DTWAIN_RangeGetAll function retrieves the values that define the DTWAIN_RANGE.  The addresses of the values that will be retrieved by DTWAIN_RangeGetAll must be passed, not the actual values.  Since DTWAIN_RANGEs can differ in data types, the caller to this function is responsible in seeing that the data residing in the DTWAIN_RANGE matches the data type sent to DTWAIN_RangeGetAll (either DTWAIN_RANGELONG or DTWAIN_RANGEFLOAT).

 

If lpMin, lpMax, lpStep, lpDef, or lpCur are NULL, the respective parameter is ignored.

 

 

TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

See Also

DTWAIN Range Functions