public void DoTests() { IBDACreateTuneRequestEx bdaCtrEx = new DVBTuningSpace() as IBDACreateTuneRequestEx; Debug.Assert(bdaCtrEx != null); ITuneRequest tr; int hr = bdaCtrEx.CreateTuneRequestEx(typeof(IDVBTuneRequest).GUID, out tr); DsError.ThrowExceptionForHR(hr); Debug.Assert(tr is IDVBTuneRequest); }
private void Config() { xmlUtility = (IPersistTuneXmlUtility2) new PersistTuneXmlUtility(); IBDACreateTuneRequestEx bdaCtrEx = new DVBTuningSpace() as IBDACreateTuneRequestEx; Debug.Assert(bdaCtrEx != null); ITuneRequest tr; int hr = bdaCtrEx.CreateTuneRequestEx(typeof(IDVBTuneRequest).GUID, out tr); DsError.ThrowExceptionForHR(hr); dvbtr = (IDVBTuneRequest)tr; // Tune request for France 2... dvbtr.put_ONID(8442); dvbtr.put_TSID(1); dvbtr.put_SID(259); }