Click here to Skip to main content
15,883,841 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello, I want to apply this code, with an example. But I can't apply this class because it will show me that I don't have it. What should I do?


using Windows.Devices.Enumeration;
using Windows.Devices.HumanInterfaceDevice;



HidDevice Class (Windows.Devices.HumanInterfaceDevice) - Windows UWP applications | Microsoft Docs[^]

What I have tried:

Alles ;)

<pre>using Windows.Devices.Enumeration;
using Windows.Devices.HumanInterfaceDevice;
Posted
Updated 19-Apr-22 6:31am

1 solution

You haven't explained what the problem is. But the documentation suggests that class is only available from UWP / WinRT projects by default. If you're using the wrong type of project, there are some additional hoops you need to jump through first:

Call Windows Runtime APIs in desktop apps - Windows apps | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900