Retrieve HID device data only from my delphi application

I have 2 keyboards connected via usb. I want my application to receive input from only one of them. I tried using TJvHidDeviceController, I confidently get the device descriptor, but I can not get any data.

Is it possible to prevent other applications from receiving input from the second keyboard?

0
source share
1 answer

Is it possible that your setup does not load the device driver for the keyboard you want to listen to? If so, you can try this method:

  • Use QueryDosDevice to list all devices on your computer. You can either find the provider or device identifier in the list, if you know them, or create a list before and after you connect the second keyboard and see which items appear in the list.
  • Use CreateFile with the \\?\ to connect to this device and read / write raw data.
+1
source

Source: https://habr.com/ru/post/1390773/


All Articles