In a UWP application, is it possible to access Bus 0

2

I'm porting over functionality from our legacy Silverlight application to our new UWP application and running into a problem with some Human Iterface Device (HID) code. We're using a camera with a button and need to take a picture when the button is clicked. In SilverLight we were able to connect to the camera using HID, but when i try the same thing in UWP I'm unable to make the connection. After debugging the problem, the camera is using Bus 0 and the UWP platform blocks access bus 0. I'm able to run legacy applications on Windows 10 and still access the camera's button so the problem resides in UWP blocking access to bus 0. Is there a work around to access Bus 0? Here are some additional details:

  • We’re trying to access the camera (a ProScope microscope) in our Windows 10 Universal Application (UWP) written in C#
  • We’re using the HID class libraries built into .NET to access the scope
  • UWP requires that we declare that the application needs access to HID resources (here’s an example in the Package.appxmanifest):

  • When I add the configuration above, I get the following error:

DEP0700 : Registration of the app failed. The Appx package's manifest is invalid.: Cannot register package because of a problem with Function element usage:0000 *: Value is blocked, and not allowed on this bus (0x80073cf6)

c#
camera
uwp
windows-10-universal
hid
asked on Stack Overflow Nov 11, 2016 by Paul M

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0