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; } } }
private void Configure() { m_ck = (IGetCapabilitiesKey) new CDeviceMoniker(); }