0

I am trying to write an Winodws application that reads and writes a HID device. One way for me to do so is to use the hidapi. I also came across some Winddows Driver API on HID.

It seems hidapi is quite straightforward to use in applications, but, are there also benefits to use Windows Driver API in applications, or when should I use them?

I also noticed that hidapi use WriteFile() to write device, while Windows Driver API has an API HidD_SetOutputReport(), I have a few questions:

  • What are the pros and cons of using these APIs?
  • Does either WriteFile() or HidD_SetOutputReport() support simultaneous writing to the same device from different applications?

Thanks!

I went through the online documents but cannot find answers.

0 Answers0