QueryCapability Example for C++ 5.0 and later
short iRet;
ILEADRasterTwain * pltRasTwain;
ICapability * pICapability;
pICapability->put_ConType (L_TWON_DONTCARE16);
pICapability->put_Capability(L_ICAP_UNITS);
iRet = pltRasTwain->QueryCapability (pICapability);
if (iRet)
{
return iRet;
}