DTWAIN_GetTwainMode

Top  Previous  Next

The DTWAIN_GetTwainMode function gets the method in which DTWAIN will communicate with the TWAIN system during acquisitions.

 

LONG DTWAIN_GetTwainMode( );

 

Parameters

None.

 

Return Values

The return value of the current mode if successful.  Otherwise DTWAIN_FAILURE1 is returned.

 

Comments

The DTWAIN_GetTwainMode function gets the method in which DTWAIN will communicate with TWAIN whenever an acquisition occurs, or when DTWAIN_ShowUIOnly is called.  Acquisitions occur during TWAIN States 6 and 7.  The return values will be DTWAIN_FAILURE1 if the function fails, or one of the following values:

 

Twain Mode

Value

Definition

DTWAIN_MODAL        

1        

Acquire using modal acquisition processing.

DTWAIN_MODELESS

2        

Acquire using modeless acquisition processing.

 

Modeless and Modal acquisition processing is defined in detail in the topic Introduction to DTWAIN Acquisition Processing.

 

TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

See Also

DTWAIN_SetTwainMode, DTWAIN_ShowUIOnly