Exemple #1
0
        private async void ShadowDriverDeviceWatcher_Added(DeviceWatcher sender, DeviceInformation args)
        {
            System.Diagnostics.Debug.WriteLine(args.Id);
            sender.Stop();
            _shadowDevice = await CustomDevice.FromIdAsync(args.Id, DeviceAccessMode.ReadWrite, DeviceSharingMode.Shared);

            IsFilterReady = true;
            FilterReady?.Invoke();
        }
Exemple #2
0
 public void StartFilterWatcher()
 {
     _shadowDevice.OpenDevice();
     FilterReady?.Invoke();
 }