public void TestLogonLogout() { int hr = 0; hr = tuner.Logon(IntPtr.Zero); if (hr != -2147467263) //E_NOTIMPL { DsError.ThrowExceptionForHR(hr); Debug.Assert(hr == 0, "IAMTVTuner.Logon"); hr = tuner.Logout(); DsError.ThrowExceptionForHR(hr); Debug.Assert(hr == 0, "IAMTVTuner.Logout"); } }