IltmmTVTuner::SetInputType Example for C++

long lInputtype; 
IltmmTVTuner* pTuner; 
HRESULT hr = m_capture->get_TVTuner (&pTuner); 
if(SUCCEEDED(hr) && pTuner != NULL) 
{
   pTuner->SetInputType (0, ltmmTunerInputCable); 
   pTuner->GetInputType (0, &lInputtype); 
   pTuner->Release();
}