예제 #1
0
        private void TestTriggerSignalEvents()
        {
            int hr = 0;

            // This method is supposed to be use to specify pulling interval of an "undocumented"
            // callback interface : ISignalEvents
            //
            // This interface is not registered on my computer and i only found it documented in the
            // DX 8.1 section from the Japan MSDN Library...

            // every 1000ms
            hr = tuner.TriggerSignalEvents(1000);
            DsError.ThrowExceptionForHR(hr);

            // Disable pulling
            hr = tuner.TriggerSignalEvents(0);
            DsError.ThrowExceptionForHR(hr);

            Debug.Assert(hr == 0, "ITuner.TriggerSignalEvents");
        }