IltmmTVTuner::SetInputType Example for C

void IltmmTVTuner_SetInputType_Example (IltmmCapture *pCapture)
{
   long lInputtype; 
   IltmmTVTuner* pTuner; 

   HRESULT hr = IltmmCapture_get_TVTuner (pCapture, &pTuner); 

   if(SUCCEEDED(hr) && pTuner != NULL) 
   {
      IltmmTVTuner_SetInputType(pTuner, 0, ltmmTunerInputCable); 
      IltmmTVTuner_GetInputType(pTuner, 0, &lInputtype); 
      IltmmTVTuner_Release(pTuner); 
   }
}