C# Windows Store app returning null for UsbDevice

后端 未结 1 1920
长发绾君心
长发绾君心 2021-01-16 16:06

Being new to Windows Store app development, I am working on an app that has to connect to several USB devices. I am using VS 2013 (community) with C#.

For example,

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-16 16:41

    The devices you mention are all well known device types which are used via more specific classes (e.g. MediaCapture for the webcam). They don't use the winusb.sys driver and cannot be controlled with the Windows.Devices.Usb namespace intended for generic devices.

    From the MSDN documentation for Windows.Devices.Usb:

    The Windows.Devices.Usb defines Windows Runtime classes that a Windows store app can use to communicate with a USB device that does not belong to a device class, or for which Microsoft does not provide an in-box driver.

    0 讨论(0)
提交回复
热议问题