DTWAIN_GetSourceUnitEx

Top  Previous  Next

The DTWAIN_GetSourceUnitEx gets the current unit of measure used by a Source.

 

DTWAIN_BOOL DTWAIN_GetSourceUnit ( DTWAIN_SOURCE Source );

 

Parameters

Source

Specifies a TWAIN Source.

 

Return Values

If successful, the current unit of measure is returned.  On failure, -1 is returned.  Call DTWAIN_GetLastError() to get extended information.

 

Comments

The DTWAIN_GetSourceUnitEx function performs the same functionality as DTWAIN_GetSourceUnit, with the difference being that the unit of measure is returned as a LONG instead of the user providing a pointer to a LONG as a parameter.

 

TWAIN State Transitions

The Source must be in State 4 or higher.

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

.

DTWAIN Source Selection Function

 

 

See Also

Setting / Getting Source Unit of Measure