DTWAIN_GetMaxRetryAttempts

Top  Previous  Next

The DTWAIN_GetMaxRetryAttempts function sets the maximum number of retries attempted if a page fails to be acquired.

 

LONG DTWAIN_GetMaxRetryAttempts ( DTWAIN_SOURCE Source );

 

 

Parameters

Source

A DTWAIN_SOURCE denoting a TWAIN Source.

 

 

Return Values

If successful, the maximum number of attempts the Source will use when acquiring a page fails.  Otherwise DTWAIN_FAILURE2 is returned.

 

Comments

The DTWAIN_GetMaxRetryAttempts function gets the maximum number of retries that the Source Source will attempt before terminating an acquisition.  The return value will either be >= 0, or the constant DTWAIN_RETRY_FOREVER.

 

TWAIN State Transitions

None

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

DTWAIN Source Selection Function

 

See Also

Acquiring Images