Thank you so much for pointing out two ways to me. My OS is windows 8.1. I will modify code for detecting device with Windows API or libusb/libusb-win32 this weekend and try next week. Hope I can have positive result.