GetScanConfigs Example for C++ 5.0 and later
void CTwainView::OnTwainAcquire()
{
short iRet;
CString csStr;
iRet = m_pltRasTwain->GetScanConfigs(1, L_LTWAIN_BUFFER_MODE, 5);
if (iRet == 0)
{
MessageBox(TEXT("GetScanConfigs method was successful"), ("Notice"), MB_OK);
csStr.Format(TEXT("Scan Configuration count = %d") + m_pltRasTwain->ScanConfigCount);
MessageBox(csStr, TEXT("Notice"), MB_OK);
csStr.Format(TEXT("Transfer Mode = %d\nFile Format = %d\nBuffer Size = %d\nRequired Time = %d\n"), m_pltRasTwain->ScanConfig[0]->TransferMode, m_pltRasTwain->ScanConfig[0]->FileFormat, m_pltRasTwain->ScanConfig[0]->BufferSize, m_pltRasTwain->ScanConfig[0]->RequiredTime);
MessageBox(csStr, TEXT("Scan Configurations..."), MB_OK);
}
else
MessageBox(TEXT("Error occurred in GetScanConfigs method!!!"), TEXT("Error!!!"), MB_OK);
}