0
Answer

USB device connection

Max Vasserman

Max Vasserman

18y
1.9k
1

I have USB to COM convertor. It converts USB to 8 COMS. I want to know in current moment whether this convertor connected to USB port or not.

   I already tried to check status of all 8 COM ports. It didn't help, because when some COM port is in use and I disconnect USB convertor, the port status was not changed. ("CreateFile()" function still returns ERROR_ACCESS_DENIED instead of ERROR_FILE_NOT_FOUND).

   I think that should be some Windows APIs to know what USB devices are connected to the computer.