Universal Windows Platform - CustomHidDevice (Error: Value is blocked)

1

I am using Universal Windows Platform sample CustomHidDeviceAcess to connect with Mouse with HID support. But then I am getting the following error during 'Build'.

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

The usage page and id for this mouse is 0001 and 0002, which is causing this error. Originally this sample application is using the following usage page and id to connect with SuperMutt device:

 <!--SuperMutt Device-->
  <Device Id="vidpid:045E 0610">
    <Function Type="usage:FFAA 0001" />
  </Device>

My first question: is it possible to fix the error that I get?

According to reference in MSDN, there is Limitations of the HID API which I assume this is one of them. So my next question: what is the alternative?

I have tried using SetupDiGetClassDevs method to open HID Collection, but it seems that UWP isn't part of #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP), cause it was disabled when I open the SetupAPI.h, does anyone can explain how to setup or enable this?

Appreciate the help..

c++
windows
uwp
hid
asked on Stack Overflow Feb 10, 2017 by undo

1 Answer

0

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

The exception has explained the reason, the capability is blocked per the article you mentioned

There is no alternative way in the present, I would forward to your feedback to the related team.


User contributions licensed under CC BY-SA 3.0