DTWAIN_IsFeederSensitive

Top  Previous  Next

The DTWAIN_IsFeederSensitive function checks if the Source can detect if documents are loaded in the document feeder.

 

DTWAIN_BOOL DTWAIN_IsFeederSensitive ( DTWAIN_SOURCE Source );

 

 

Parameters

Source

Specifies an open TWAIN Source.

 

Return Values

If the Source can detect if there are document loaded in the feeder, TRUE is returned.  Otherwise FALSEis returned.

 

Comments

The DTWAIN_IsFeederSensitive function takes the open Source Source, and checks to see if the Source can detect if there are documents loaded in the feeder.  This function should be called before calling DTWAIN_IsFeederLoaded to ensure that the Source can indeed detect if there are documents in the feeder  The document feeder must be enabled before calling this function (see DTWAIN_EnableFeeder).  A return value of TRUE means that the Source can query whether the feeder is loaded.  A return value of FALSE will most likely mean one of the following scenarios occurred:

 

The feeder has not been enabled (use DTWAIN_EnableFeeder to enable/disable the document feeder)

The device does not support querying whether the feeder is loaded.  Some Sources have a document feeder, but there is no way to test if documents are loaded in the feeder.

The device does not have a document feeder.

 

Call DTWAIN_GetLastError if the return value is FALSE to determine the exact cause for failure.

 

TWAIN State Transitions

The source must be opened in State 4

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

Automatic Document Feeder Support