How would I go about setting up a listener for a particular USB HID device. I want to be able to capture X10 events. I was going to setup a thread to poll the buffer, but the ReadFile() function seems to hang when there are no bytes in the buffer. Is there a better way to go about this? I must admit that most of my experience has been in writing front-end apps, but I am having a lot of fun with this one! thanks.