![]() |
|
#1
|
|||
|
|||
|
Is editing a driver's *.inf possible?
Lets assume the following (unspecified so it's easier to understand):
I have two hardware devices with DeviceIDs PCI\001 and PCI\002 and I'm running Windows 10 x64. Windows has a driver for PCI\001 included, but for PCI\002 it needs a vendor specific driver. The vendor specific driver comes as a driver package: driver.sys (signed by vendor and "Microsoft Windows Hardware Compatibility Publisher") driver.inf (not signed) driver.cat (signed by "Microsoft Windows Hardware Compatibility Publisher") driver.inf says that the driver supports PCI\001 and PCI\002, but the vendor driver.sys does not support the PCI\001 device. The fact that the driver.inf claims it would support PCI\001 makes Windows unload its own driver for PCI\001. At this point I could either use the Windows default driver for PCI\001 and have a not working PCI\002 or I could use the vendor driver for PCI\002 and have a not working PCI\001. So the easiest way would be to edit driver.inf and remove the line saying it supports PCI\001. However, driver.cat contains the hash for driver.inf, so if I edit driver.inf Windows will not load the driver because it has no valid signature. If I remove the driver.cat entry from driver.inf or the file driver.cat Windows will not load the driver either. Is there any way to force Windows to ignore specific sections of *.inf files or to force it to load only its own driver? Or some way to edit *.inf files without invalidating the signature? Since driver.sys is signed and unmodified this could be possible somehow. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| making patch hex editing in .net | js78955 | General Discussion | 4 | 01-21-2015 04:26 |
| editing Debug Information Directory in a PE file | jonwil | General Discussion | 6 | 01-15-2005 06:18 |
| Editing a .key file? | peedizzle | General Discussion | 1 | 09-09-2004 00:49 |