Duplex Options Example for C++ 5.0 and later
void TestDuplexOptions(ILEADRasterTwain * pRasterTwain)
{
VARIANT_BOOL bEnableDuplex;
short nDuplexMode;
short nMaxXfer;
pRasterTwain->get_EnableDuplex (&bEnableDuplex);
pRasterTwain->get_DuplexMode (&nDuplexMode);
pRasterTwain->get_MaxXferCount (&nMaxXfer);
if (bEnableDuplex != TRUE)
{
pRasterTwain->put_EnableDuplex (TRUE);
pRasterTwain->put_DuplexMode (L_TWDX_1PASSDUPLEX);
}
if (nMaxXfer != 10)
pRasterTwain->put_MaxXferCount (10);
}