InitSessionFlags Example for C++ 5.0 and later
void CTwainView::TestTwain()
{
ILEADRasterTwain * pltRasTwain;
pltRasTwain->EnableMethodErrors = FALSE;
pltRasTwain->ManName = TEXT("LEAD Technologies, Inc.");
pltRasTwain->ProdFamily = TEXT("LEAD Twain COM Object");
pltRasTwain->Version = TEXT("Version 14.5");
pltRasTwain->AppName = TEXT("LEADTools Twain test sample");
pltRasTwain->InitSessionFlags = L_LTWAIN_INIT_MULTI_THREADED;
pltRasTwain->InitSession ((long)m_hWnd);
}