IltmmTVTuner::get_AvailableTVFormats Example for C++
IltmmTVTuner* pTuner;
HRESULT hr = m_capture->get_TVTuner (&pTuner);
if(SUCCEEDED(hr) && pTuner != NULL)
{
long lAvailableTVFormats, lTVFormat;
pTuner->get_AvailableTVFormats (&lAvailableTVFormats);
if (lAvailableTVFormats == 0)
MessageBox("No analog video available");
else
pTuner->get_TVFormat (&lTVFormat);
pTuner->Release();
}