コード例 #1
0
ファイル: ITunerTest.cs プロジェクト: ewin66/DirectShow.NET
        private void TestPreferredComponentTypes()
        {
            int             hr = 0;
            IComponentTypes compTypes;

            hr = tuner.get_PreferredComponentTypes(out compTypes);
            DsError.ThrowExceptionForHR(hr);

            hr = tuner.put_PreferredComponentTypes(compTypes);
            DsError.ThrowExceptionForHR(hr);

            Debug.Assert(hr == 0, "ITuner.get_PreferredComponentTypes / put_PreferredComponentTypes");

            Marshal.ReleaseComObject(compTypes);
        }