Hi guys,
I’m trying to do this in my installation program which calls UpdateDriverForPlugAndPlayDevices. Since the hardware ID is in the INF file, I think there could be some way to do this.
Any idea? Thanks in dvance.
Regards,
Green
Hi guys,
I’m trying to do this in my installation program which calls UpdateDriverForPlugAndPlayDevices. Since the hardware ID is in the INF file, I think there could be some way to do this.
Any idea? Thanks in dvance.
Regards,
Green
Which hardware ID do you want? An INF can provide drivers for several different HWIDs.
If you just want any one of them then you can use the Setup functions for parsing an INF. See SetupOpenInfFile, SetupFind[First|Next]Line and SetupGet*Field functions. You’d have to walk through every line in [Manufacturers], open each section they referred to and then iterate through those until you found a HWID that you liked.
-p
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Monday, February 05, 2007 2:28 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Any API to get the hardware ID from an INF file?
Hi guys,
I’m trying to do this in my installation program which calls UpdateDriverForPlugAndPlayDevices. Since the hardware ID is in the INF file, I think there could be some way to do this.
Any idea? Thanks in dvance.
Regards,
Green
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Thanks Peter. I think this is what I want.