SourceName Example for C++ 5.0 and later
ILEADRasterTwain * pltRasTwain;
BSTR strName;
long lCount;
pltRasTwain->get_SourceCount (&lCount);
for (long n = 0 ; n < lCount ; n++)
{
pltRasTwain->get_SourceName (n, &strName);
// Check for source name and do other processing
}