Reputation: 104841
Can I get a list of what devices are currently connected to the computer?
I checked this and this thread, but I can't seem to find the actual names (i.e. iPod Touch 4 etc.) is there a way to find the name of the device in human language, so I can display this list (of matching devices) to the user?
Any PI that gets this info?
Update: I notice that the computer's device management is able to show this info, meaning it does exist somewhere, I just don't know the right place to access it.
I did found this info in the registry, but there is some inconsistency between the "Mighty Drive" and the "iPod", I'm looking for a reliable reg. key to seek for this info.
Upvotes: 4
Views: 5520
Reputation: 3423
Device Manager shows the first "Display Name" property associated with a particular device. You can get that information using SetupDiGetDeviceRegistryProperty
with, I believe, the SPDRP_FRIENDLYNAME
property.
Upvotes: 4