Is Co-installer is mandatory for the KMDF usb driver?
How can i properly incorporate the co-insaller section in my inf file.
Below is my inf file with the co-installer section.
/////////Inf file
[Version]
Signature=“$CHICAGO$”
Class=Ports
ClassGUID={4d36e978-e325-11ce-bfc1-08002be10318}
Provider=%testdriver%
DriverVer=8/3/2004,2.0.0
[Manufacturer]
%testdriver%=MRI
[MRI]
%testdriverUSBSerial%=testdriver.Install,USB\VID_YYYY&PID_XXXX
[DestinationDirs]
testdriver.Files.Driver.NT=10,System32\Drivers
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Windows XP
[Wdm1.Install.NT]
CopyFiles=Wdm1.Files.Driver.NT
[testdriver.Install.NT]
CopyFiles=testdriver.Files.Driver.NT
Include=MSPORTS.INF
Needs=SerialEnumerator.NT
AddReg=testdriver.NT.AddReg
[SourceDisksNames.NT]
1=“TESTInstallation Disk”,
[testdriver.Files.Driver.NT]
testsysF.sys
[testdriver.Install.NT.Services]
Include=MSPORTS.INF
Needs=SerialEnumerator.NT.Services
AddService = testdriver, %SPSVCINST_ASSOCSERVICE%, testdriver.Service
[testdriver.Install.NT.HW]
AddReg=testdriver.NT.HW.AddReg
[testdriver.NT.AddReg]
HKR,PortSubClass,1,01
HKR,EnumPropPages32,“MsPorts.dll,SerialPortPropPageProvider”
[testdriver.NT.HW.AddReg]
HKR,“UpperFilters”,0x00010000,“serenum”
[testdriver.Service]
DisplayName = %testdriver.ServiceName%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\System32\Drivers\testsysF.sys
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;-------------- WDF Coinstaller installation
[DestinationDirs]
CoInstaller_CopyFiles = 11
[testsysF.Dev.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles
[CoInstaller_CopyFiles]
WdfCoInstaller01009.dll
[SourceDisksFiles]
WdfCoInstaller01009.dll=1 ; make sure the number matches with SourceDisksNames
[CoInstaller_AddReg]
HKR,CoInstallers32,0x00010000, “WdfCoInstaller01009.dll,WdfCoInstaller”
[testsysF.Dev.NT.Wdf]
KmdfService = testsysF, testsysF_wdfsect
[testsysF_wdfsect]
KmdfLibraryVersion = 1.9
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Strings
[Strings]
Std = “(Standard port types)”
TEST= “testdriver Inc.”
testdriverUSBSerial =“TEST USB Driver”
testdriver.ServiceName=“TEST Service”
SPSVCINST_ASSOCSERVICE=0x00000002
COPYFLG_NOSKIP=2
SERVICE_KERNEL_DRIVER=1
SERVICE_AUTO_START=2
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1
//////////
Thanks in advance, plz help.