Author Topic: Test for presence of HID device  (Read 6470 times)

jglawrence

  • Member
  • ***
  • Posts: 13
Test for presence of HID device
« on: August 15, 2011, 05:30:06 pm »
I was wondering if it's possible to test for the presence of an HID usb device without actually "connecting" to it?

I would like to have my program have a status bar that states whether the device is present on the host system but I don't want to have to continually call a function to attempt to connect to it.  Is there anyway to do this so it is interrupt-like based as I am describing?

Thanks!

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Test for presence of HID device
« Reply #1 on: August 15, 2011, 09:06:42 pm »
In my Generic HID examples, see the WndProc and OnDeviceChange routines.

http://www.lvr.com/hidpage.htm#MyExampleCode

Jan