FamilyName Example for C++ 5.0 and later

ILEADRasterTwain_U * pRasterTwain;
CString csBuffer;
long lCount;

HRESULT hr = ::CoCreateInstance(CLSID_LEADRasterTwain_U, NULL, CLSCTX_ALL, IID_ILEADRasterTwain_U, (void **)&pRasterTwain);

pRasterTwain->InitSession((long)GetSafeHwnd()); 
pRasterTwain->get_SourceCount (&lCount);
for (long n = 0 ; n < lCount ; n++)
{
	csBuffer.Format(TEXT("Source Name = %s\nProduct Family Name = %s\nManufacturer Name = %d\n"),
				  (TCHAR *)pRasterTwain->GetSourceName(n),
				  (TCHAR *)pRasterTwain->GetFamilyName(n),
				  (TCHAR *)pRasterTwain->GetManufacturerName(n));

	MessageBox(csBuffer, TEXT("Source Info."));
}