DTWAIN_GetManualDuplexCount

Top  Previous  Next

The DTWAIN_GetManualDuplexCount function gets the number of pages acquired when using the Manual Duplex Mode.

 

LONG DTWAIN_GetManualDuplexCount (

DTWAIN_SOURCE

Source,

LPLONG

pSide1,

LPLONG

pSide2 );

 

Parameters

Source

A DTWAIN_SOURCE that denotes a TWAIN Source.

 

pSide1

Pointer to LONG type.  On return, will denote the number of pages acquired for side 1.

 

pSide2

Pointer to LONG type.  On return, will denote the number of pages acquired for side 2.

 

Return Values

If this function is successful, TRUE is returned, otherwise FALSE is returned.

 

Comments

The DTWAIN_GetManualDuplexCount gets the number of pages acquired for side 1 and side 2 when the manual duplex mode option is selected.  This function should be called during DTWAIN Notification processing, and can be used to determine if the number of pages acquired for both sides of the paper are the same.

 

TWAIN State Transitions

None

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

DTWAIN_SetManualDuplexMode

DTWAIN_AcquireFile or DTWAIN_AcquireFileEx