PORTS Forum

Ports and Interfaces => USB => Topic started by: jglawrence on August 15, 2011, 05:30:06 pm

Title: Test for presence of HID device
Post by: jglawrence 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!
Title: Re: Test for presence of HID device
Post by: Jan Axelson 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