コード例 #1
0
        public void DoTests()
        {
            int    hr;
            IntPtr pk;

            DsDevice[] devs = DsDevice.GetDevicesOfCat(FilterCategory.LegacyAmFilterCategory);

            foreach (DsDevice d in devs)
            {
                IGetCapabilitiesKey ts = d.Mon as IGetCapabilitiesKey;
                hr = ts.GetCapabilitiesKey(out pk);

                if (hr == 0)
                {
                    Debug.Assert(pk != IntPtr.Zero);
                    break;
                }
            }
        }
コード例 #2
0
 private void Configure()
 {
     m_ck = (IGetCapabilitiesKey) new CDeviceMoniker();
 }