GetCapability 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->GetCapability (pICapability, L_LTWAIN_CAPABILITY_GETCURRENT); 
if (iRet) 
{
   return iRet; 
}