IltmmTVTuner::SetChannel Example for C++

IltmmTVTuner* pTuner; 
HRESULT hr = m_capture->get_TVTuner (&pTuner); 
if(SUCCEEDED(hr) && pTuner != NULL) 
{
   long channel, lVideoFrequency, lAudioFrequency; 

   hr = pTuner->get_Channel (&channel); 
   if(SUCCEEDED(hr)) 
   {
      pTuner->SetChannel(channel, ltmmTUNER_SUBCHAN_DEFAULT,ltmmTUNER_SUBCHAN_DEFAULT); 
      pTuner->get_VideoFrequency (&lVideoFrequency); 
      pTuner->get_AudioFrequency (&lAudioFrequency); 
   }
   pTuner->Release();
}