Also when same driver is installed twice (two device nodes created with
same identity) it shows such prefix. I don't know why does this happen?
Could anybody clarify it?
On Jul 16, 2015 10:40 PM, "Andrew Vogan" <andrewvog@xxxxxxxxx> wrote:
My client wants to override the friendly MIDI device name specified in the
INF and follow a scheme like the following when multiple identical devices
are connected...
"My Device"
"My Device (2)"
"My Device (3)"
... and so on. However, the audio stack is inserting a uniquifying prefix
of "2- " onto the device name. Where does that come from, and is there a
way to override it?
I can already change the FriendlyName successfully
via IoOpenDeviceInterfaceRegistryKey following IoGetDeviceInterfaces with
the PDO. This sends me to the following registry location, at least on
Win8.1:
Key:
Control\DeviceClasses\{6994ad04-93ef-11d0-a3cc-00a0c9223196}\##?#USB#VID_<myvid>&PID_<mypid>#<myserial>#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\#Uart\Device
Parameters
Value name "FriendlyName" of type: REG_SZ
When I change the FriendlyName value, I can successfully see the new name
as I enumerate MIDI devices, however I also still see the unwanted, and in
my opinion, no longer necessary prefix of "2- ", so I end up with a device
name of "2- My Device (2)" and so on. Ideas?
Regards,
Andrew