DTWAIN_RangeCreate

Top  Previous  Next

The DTWAIN_RangeCreate creates a DTWAIN_RANGE.

 

DTWAIN_RANGE DTWAIN_RangeCreate ( LONG RangeType );

 

 

Parameters

RangeType

This is the data type that the created DTWAIN_RANGE will store.

 

Return Values

If the function succeeds, a new DTWAIN_RANGE is returned.  Otherwise, NULL is returned.

 

Comments

The DTWAIN_RangeCreate function returns a new DTWAIN_RANGE of the type RangeType. The DTWAIN_RANGE emulates the TWAIN TW_RANGE type.  The defined RangeType types are as follows:

 

Data Type

Value

Definition

DTWAIN_RANGELONG

2

Range will hold LONGs

DTWAIN_RANGEFLOAT

3

Range will hold DTWAIN_FLOATs

 

The returned DTWAIN_RANGE is valid until DTWAIN_RangeDestroy or DTWAIN_SysDestroy is called.  Once the DTWAIN_RANGE is created, the values that define the DTWAIN_RANGE must be set by calling the various DTWAIN_RANGE functions.

 

TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

See Also

DTWAIN_RANGE Functions