Hi,
I want to install a lower filter driver to a existing standard WDM
driver on Win98/ME.
I have been able to test my driver (filter.sys) by manually copying the
file and adding corresponding Registry entries, but I am not able to
install it through inf file.
I created a inf file and tried to install the driver using
DefaultInstall section. It works out fine except for one enumeration
entry in the registry which is dependent on the unique hardware id of
the device, and hence keyid cannot be specified in the inf.
Ongoing through the DDK documentation I find that we cannot add a
registry key using HKR in the DefaultInstall section, and we have to use
a DDInstall section in the inf. However on replacing the Default Install
section with DDInstall section the inf has stopped working completely.
Here is a snippet from my inf file with the DDInstall section.
;****************************************************************
[Version]
signature=“$CHICAGO$”
Class = HHHH ; standard driver class in 2k & XP
ClassGuid = {AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE}
;standard class guid in XP & 2K
Provider=%provider%
DriverVer=08/08/2005,1.0.0000.0
[DestinationDirs]
defaultdestdir=10,SYSTEM32\DRIVERS
myfilter.CopyDriver=10,SYSTEM32\DRIVERS
[ControlFlags]
ExcludeFromSelect=*
[SourceDisksNames]
1 = %myfilter.MediaDesc%,
[SourceDisksFiles]
myfilter.sys = 1,
[Manufacturer]
%Mfg%=MyManufacturer
[MyManufacturer]
%myfilter.DeviceDesc%=myinstall,1394\ZZZZ&YYYYY
[myinstall]
AddReg=myfilterAddReg
CopyFiles=myfilter.CopyDriver
[myinstall.HW]
AddReg=myfilterAddReg.HW
[myfilterAddReg]
HKR,LowerFilters,0x00010000,myfilter.sys
[myfilterAddReg.HW]
HKR,LowerFilters,0x00010000,myfilter.sys
[myfilter.CopyDriver]
myfilter.sys
[Strings]
provider=“XXXXXXXXXX”
Mfg=“XXXXXXXXXXX”
myfilter.MediaDesc=“Filter Driver Disc”
myfilter.DeviceDesc=“Lower Filter Driver”
;***********************************************************
Am I missing something in this inf file?
Thanks & Regards,
Hemant