IltmmTVTuner::get_AvailableModes Example for C++
IltmmTVTuner* pTuner;
HRESULT hr = m_capture->get_TVTuner (&pTuner);
if(SUCCEEDED(hr) && pTuner != NULL)
{
long lAvailableModes, lMode;
pTuner->get_AvailableModes (&lAvailableModes);
if (lAvailableModes & ltmmTUNER_MODE_TV)
pTuner->put_Mode (ltmmTUNER_MODE_TV);
else
pTuner->put_Mode (ltmmTUNER_MODE_DEFAULT);
pTuner->get_Mode (&lMode);
pTuner->Release();
}