USB Hotplugging callbacks with python on Windows
问题 Is it possible to write a python script such that a function is called whenever a USB device is added or removed on Windows? libusb (and corresponding python modules such as libusb1) appears to be the most popular solution, but it lacks hotplugging callback registration support in Windows. A feature request has been open for this since 2015, and it's still not implemented. I've seen some hacks query Windows' usb devices at some interval, do a diff of the current list of devices from the