I’m new to working with drivers. I use the USB Kernel-Mode Driver template provided with Microsoft Visual Studio Professional 2013 to write a simple kernel-mode driver framework (KMDF)-based client driver to work with usb mass storage device. After building and installing the client driver, I view the unknown device in Device Manager, and my driver don’t see usb device. What’s wrong? Probably incorrectly installed the driver or the wrong inf file? I use devcon.exe for install driver. inf file:
[Version]
Signature=“$WINDOWS NT$”
Class=USBDevice
ClassGuid={88BAE032-5A81-49f0-BC3D-A4FF138216D6}
Provider=%ManufacturerName%
CatalogFile=USBDriver1.cat
DriverVer=09/05/2017,16.33.16.24
[DestinationDirs]
DefaultDestDir = 12
[SourceDisksNames]
1 = %DiskName%,“”
[SourceDisksFiles]
USBDriver1.sys = 1,
;*****************************************
; Install Section
;*****************************************
[Manufacturer]
%ManufacturerName%=Standard,NTamd64
[Standard.NTamd64]
%USBDriver1.DeviceDesc%=USBDriver1_Device, USB\VID_1005&PID_B113
[USBDriver1_Device.NT]
CopyFiles=Drivers_Dir
[Drivers_Dir]
USBDriver1.sys
[USBDriver1_Device.NT.HW]
AddReg=USBDriver1_AddReg
;-------------- Class definition
[ClassInstall32]
AddReg = ClassInstall_AddReg
[ClassInstall_AddReg]
HKR,%ClassName%
HKR,NoInstallClass,1
HKR,IconPath,%REG_MULTI_SZ%,“%systemroot%\system32\setupapi.dll,-20”
HKR,LowerLogoVersion,5.2
;-------------- Service installation
[USBDriver1_Device.NT.Services]
AddService = USBDriver1,%SPSVCINST_ASSOCSERVICE%, USBDriver1_Service_Inst
; -------------- USBDriver1 driver install sections
[USBDriver1_Service_Inst]
DisplayName = %USBDriver1.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\USBDriver1.sys
LoadOrderGroup = Extended Base
;
;— USBDriver1_Device Coinstaller installation ------
;
[DestinationDirs]
USBDriver1_Device_CoInstaller_CopyFiles = 11
[USBDriver1_Device.NT.CoInstallers]
AddReg=USBDriver1_Device_CoInstaller_AddReg
CopyFiles=USBDriver1_Device_CoInstaller_CopyFiles
[USBDriver1_Device_CoInstaller_AddReg]
HKR,CoInstallers32,0x00010000, “WdfCoInstaller01011.dll,WdfCoInstaller”
[USBDriver1_Device_CoInstaller_CopyFiles]
WdfCoInstaller01011.dll
[SourceDisksFiles]
WdfCoInstaller01011.dll=1 ;
[USBDriver1_Device.NT.Wdf]
KmdfService = USBDriver1, USBDriver1_wdfsect
[USBDriver1_wdfsect]
KmdfLibraryVersion = 1.11
[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName=“”
ClassName=“Universal Serial Bus devices”
DiskName = “USBDriver1 Installation Disk”
USBDriver1.DeviceDesc = “USBDriver1 Device”
USBDriver1.SVCDESC = “USBDriver1 Service”
REG_MULTI_SZ = 0x00010000