Developer question: Listing installed devices on Windows Vista

Posted: 01-03-2007, 08:41 PM
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

Responses to "Developer question: Listing installed devices on Windows Vista"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
General Vista and joystick devices question pjp Windows Vista Games 0 07-08-2006 06:52 PM
Devices installed through Unattend Or Tsemah Windows Vista Hardware & Devices 0 06-27-2006 11:55 AM
Windows Vista Upgarde Advisor - Drivers for these devices exist nomad1967 Windows Vista Hardware & Devices 0 06-10-2006 03:57 PM
A question about PNP devices and XPe. David Windows XP Embedded 1 02-29-2004 12:13 PM
run my SQL Server 2k Developer Edition in Windows XP pro Handoyo Windows XP 0 07-12-2003 06:57 AM