DTWAIN_GetDuplexType

Top  Previous  Next

The DTWAIN_GetDuplexType function gets the duplex mode that is supported by the Source.

 

DTWAIN_BOOL DTWAIN_GetDuplexType (

DTWAIN_SOURCE

Source,

LPLONG

lpDuplexType );

 

Parameters

Source

Specifies an open TWAIN Source.

 

lpDuplexType

NULL, or the address of LONG variable that will be filled in with the duplex type

 

Return Values

If duplex mode is supported for the Source, TRUE is returned.  Otherwise FALSE is returned.

 

Comments

The DTWAIN_GetDuplexType function takes the open Source Source, and checks to see if duplex mode is supported.  If lpDuplexType is not NULL, DTWAIN_GetDuplexType will fill the address lpDuplexType with the duplex device type.  A list of the duplex device type can be one of the following:

 

DTWAIN Constant

Description

 

DTWAIN_DX_NONE        

No duplexer supported.

DTWAIN_DX_1PASSDUPLEX

One pass duplexer

DTWAIN_DX_2PASSDUPLEX

Two pass duplexer

 

If FALSE is returned and lpDuplexType is not NULL, the application should check if the lpDuplexType value is set to DTWAIN_DX_NONE.  This indicates that the Source does not support duplex mode, and is not fully TWAIN compliant with respect to querying duplex support.

 

TWAIN State Transitions

The source must be opened in State 4

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

Duplex Scanner Support