Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Hardware > Developer question: Listing installed devices on Windows Vista

Reply
Thread Tools Display Modes

Developer question: Listing installed devices on Windows Vista

 
 
Jon E. Scott
Guest
Posts: n/a

 
      01-03-2007
Don't see a Vista Development newgroup nor can I find anything on this in
MSDN...

We have a custom application that lists all devices installed on the system
by enumerating the HKLM\System\CurrentControlSet\Enum registry key.
Basically we look for the "Control" key then grab the "DeviceDesc", "Mfg",
etc. values from the key above it. This has worked fine in all NT-based
machines to date. However, on Vista machines, we get what looks like the
INF file names and format identifiers along with the values we only care
about. A few examples:

@cdrom.inf,%gencdrom_devdesc%;CD-ROM Drive
@keyboard.inf,%*pnp0303.devicedesc%;Standard 101/102-Key or Microsoft
Natural PS/2 Keyboard
@monitor.inf,%pnpmonitor.devicedesc%;Generic PnP Monitor
@msmouse.inf,%*pnp0f13.devicedesc%;PS/2 Compatible Mouse
@usbport.inf,%usb\root_hub20.devicedesc%;USB Root Hub

What's with the @*.inf and %whatever% in the strings on Windows Vista?
Where else do I get just the device name/description without all the other
mess? I don't want to have to write an ugly parser routine to just grab
everything after the last ";".

--
Thanks,
Jon E. Scott
Blue Orb Software
http://www.blueorbsoft.com



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB devices not recognized or installed on Vista PeteV Windows Vista General Discussion 2 12-19-2007 10:33 PM
WIndows Vista Gadgets Developer Bruno Alexandre Windows Vista General Discussion 1 02-13-2007 08:16 PM
Developer Question: Vista Icons Berry J. Windows Vista General Discussion 4 11-25-2006 04:09 PM
General Vista and joystick devices question pjp Windows Vista Games 0 07-08-2006 05:52 PM
Devices installed through Unattend Or Tsemah Windows Vista Hardware 0 06-27-2006 10:55 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59