I have a problem in INF file for the windows xp -sp3, KMDF ver 1.9 for the USB driver.
In the inf file i added co-installer section (along with my driver details and Upperfilter [serenum] details) with this i am not able to load my driver.
To load my driver i did the following steps [for testing purpose]
- initllay i laoded the OSRUSBSFX2.inf file [in this just changed the VID and PID values and GUID]
This it is loaded the Co-installer properly. [and i have seen wdf01000.sys and " wdfcoInstaller010009.dll" in the directory C:\WINDOWS\System32\drivers" "C:\WINDOWS" respectively] - Again i loaded my inf file [without co-installer section]. This installed properly.
[Installed files are :- a) driver.sys and b) serenum.sys files] and it is working. [without deletion of co-installer files ( installed previously by the osrusbfx2)].
Now facing the problem is :- In my inf file i added the co-installer section, [before install my driver i have deleted the “wdfcoInstaller010009.dll & wdf01000.sys” files from the respective directories]
it is just loaded the wdfcoInstaller010009.dll in the directory "C:\WINDOWS\
but the Driver not loaded successfully.
I have checked the wdf01000.sys file was not found.
Even i checked with driver details :- in that “serenum.sys” was also not loaded.
i have posted the my inf file. Please help me
;/*++
;
;Copyright (c) Microsoft Corporation. All rights reserved.
;
; THIS CODE AND INFORMATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY
; KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
; PURPOSE.
;
;Module Name:
;
; VAKIUSBF.INF
;
;Abstract:
; Installation inf for vaksh Learning Kit
;
;–*/
[Version]
Signature=“$CHICAGO$”
Class=Ports
ClassGUID={4d36e978-e325-11ce-bfc1-08002be10318}
Provider=%vaksh%
DriverVer=08/03/2004,2.0.0
CatalogFile=vaksh.cat
[Manufacturer]
%vaksh%=MRI
[MRI]
%vakshUSBSerial%=vaksh.Install,USB\VID_11CA&PID_0218
%vakshUSBSerial%=vaksh.Install,USB\VID_11CA&PID_0213
[DestinationDirs]
;vaksh.Files.Driver.NT=10,System32\Drivers
DefaultDestDir=12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Windows XP
[Wdm1.Install.NT]
CopyFiles=Wdm1.Files.Driver.NT
[vaksh.Install.NT]
CopyFiles=vaksh.Files.Driver.NT
Include=MSPORTS.INF
Needs=SerialEnumerator.NT
AddReg=vaksh.NT.AddReg
[vaksh.Install.ntx86]
CopyFiles=vaksh.Files.Driver.NT
Include=MSPORTS.INF
Needs=SerialEnumerator.NT
AddReg=vaksh.NT.AddReg
[SourceDisksNames]
1=%Disk_Description%,
[SourceDisksFiles]
VAKIUSBF.sys =1
[vaksh.Files.Driver.NT]
VAKIUSBF.sys
[vaksh.Install.NT.Services]
Include=MSPORTS.INF
Needs=SerialEnumerator.NT.Services
AddService = vaksh, %SPSVCINST_ASSOCSERVICE%, vaksh.Service
[vaksh.Install.ntx86.Services]
Include=MSPORTS.INF
Needs=SerialEnumerator.NT.Services
AddService = vaksh, %SPSVCINST_ASSOCSERVICE%, vaksh.Service
[vaksh.Install.NT.HW]
AddReg=vaksh.NT.HW.AddReg
[vaksh.Install.ntx86.HW]
AddReg=vaksh.NT.HW.AddReg
[vaksh.NT.AddReg]
HKR,PortSubClass,1,01
HKR,EnumPropPages32,“MsPorts.dll,SerialPortPropPageProvider”
[vaksh.NT.HW.AddReg]
HKR,“UpperFilters”,0x00010000,“serenum”
[vaksh.Service]
DisplayName = %vaksh.ServiceName%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\System32\Drivers\VAKIUSBF.sys
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;-------------- WDF Coinstaller installation
[DestinationDirs]
CoInstaller_CopyFiles = 11
[vaksh.Install.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles
[vaksh.Install.ntx86.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles
;[vaksh.Install.ntia64.CoInstallers]
;AddReg=CoInstaller_AddReg
;CopyFiles=CoInstaller_CopyFiles
;[vaksh.Install.ntamd64.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”
[vaksh.Install.NT.Wdf]
KmdfService = vaksh, VAKIUSBF_wdfsect
[VAKIUSBF_wdfsect]
KmdfLibraryVersion = 1.9
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Strings
[Strings]
Std = “(Standard port types)”
vaksh= “vaksh Inc.”
vakshUSBSerial =“VAKI USB Driver”
Disk_Description=“vaksh Installation Disk”
vaksh.ServiceName=“VAKI USB to Serial Service”
SPSVCINST_ASSOCSERVICE=0x00000002; Driver service is associated with device being installed
COPYFLG_NOSKIP=2 ; Do not allow user to skip file
SERVICE_KERNEL_DRIVER=1
SERVICE_AUTO_START=2
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1
Please help me, how can i incorporate inf file with the co-installer, serenum.sys and VAKIUSBF.sys (my driver).