Ejemplo n.º 1
0
        private void TestGetCapability()
        {
            double        ret        = 0;
            ExtDeviceCaps devicetype = 0;
            int           hr         = _extDevice.GetCapability(ExtDeviceCaps.DeviceType, out devicetype, out ret);

            DsError.ThrowExceptionForHR(hr);

            Debug.Assert(devicetype == ExtDeviceCaps.VCR, "DeviceType");
        }
Ejemplo n.º 2
0
        private void TestGetDevicePower()
        {
            ExtDeviceCaps powermode = 0;
            int           hr        = _extDevice.get_DevicePower(out powermode);

            DsError.ThrowExceptionForHR(hr);

            Debug.Assert(powermode == ExtDeviceCaps.On, "TestGetDevicePower");

            hr = _extDevice.put_DevicePower(ExtDeviceCaps.Standby);
            //DsError.ThrowExceptionForHR(hr); //E_NOTIMPL

            Debug.Assert(powermode == ExtDeviceCaps.On, "TestGetDevicePower");
        }