I am trying to write an application that needs to detect when a particular midi device is plugged in however I am having some problems. It turns out that any device that uses the standard windows midi drivers will show up on the computer as a “Generic USB Audio Device” but I need to be able to decipher between different USB Audio Devices so that when my device is plugged in the application will pop up. I could poll each device with a Sysex message however that would hold up the midi devices from other being used by another program.
Is there a function that can retrieve the string descriptors from a USB device so that I can tell the difference between two USB Audio Devices?
Or would it be hard to write one?