Hi, I am trying to convert a lower disk filter driver that was written in WDM. The WDM driver installs and runs just fine on Win7 and Windows 10 x64.
The driver will layer as a lower filter driver of disk.sys.
I created the KMDF driver using the KMDF driver project type in VS 2019 and modified the INF file generated to the one as follows.
When I compile the driver, the INF validator integrated into the build complains of the following error
1308 Found legacy DelProperty operation
How do I get around this error?. It points to line 1 in the INF file but line 1 is a comment. The Visual Studio documentation is not of any help at all
Also, I am not able to reference HKLM in the INF file (The old WDM INF file modifies the LowerFilters registry key in HLKM but looks like I have to use HKR).
Does the following INF file look ok for installing the lower filter driver?
Thanks in advance for any help,
RK
==================================================================================INF file==============================================
[Version]
Signature=“$WINDOWS NT$”
Class=DiskDrive ; TODO: edit Class
ClassGuid={4d36e967-e325-11ce-bfc1-08002be10318} ; TODO: edit ClassGuid
Provider=%ManufacturerName%
CatalogFile=icsflt.cat
DriverVer=03/07/2020,5.1.2600.0 ; TODO: set DriverVer in stampinf property pages
[DestinationDirs]
DefaultDestDir = 12
icsflt_Device_CoInstaller_CopyFiles = 11
; ================= Class section =====================
[SourceDisksNames]
1 = %DiskName%,“”
[SourceDisksFiles]
icsflt.sys = 1,
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1 ; make sure the number matches with SourceDisksNames
;*****************************************
; Install Section
;*****************************************
[Manufacturer]
%ManufacturerName%=Standard,NT$ARCH$
[Standard.NT$ARCH$]
%icsflt.DeviceDesc%=icsflt_Device, Root\icsflt ; TODO: edit hw-id
[icsflt_Device.NT]
CopyFiles=Drivers_Dir
[icsflt_Device.NT.HW]
AddReg=icsflt_Device.NT.AddReg
[icsflt_Device.NT.AddReg]
;HKR,DeviceCharacteristics,0x10001,0x0100 ; Use same security checks on relative opens
;HKR,Security,“D:P(A;;GA;;;BA)(A;;GA;;;SY)” ; Allow generic-all access to Built-in administrators and Local system
HKR,“LowerFilters”, 0x00000004
HKR,“LowerFilters”, 0x00010008, “icsflt”
[Drivers_Dir]
icsflt.sys
;-------------- Service installation
[icsflt_Device.NT.Services]
AddService = icsflt,%SPSVCINST_ASSOCSERVICE%, icsflt_Service_Inst
; -------------- icsflt driver install sections
[icsflt_Service_Inst]
DisplayName = %icsflt.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\icsflt.sys
;
;— icsflt_Device Coinstaller installation ------
;
[icsflt_Device.NT.CoInstallers]
AddReg=icsflt_Device_CoInstaller_AddReg
CopyFiles=icsflt_Device_CoInstaller_CopyFiles
[icsflt_Device_CoInstaller_AddReg]
HKR,CoInstallers32,0x00010000, “WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller”
[icsflt_Device_CoInstaller_CopyFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll
[icsflt_Device.NT.Wdf]
KmdfService = icsflt, icsflt_wdfsect
[icsflt_wdfsect]
KmdfLibraryVersion = $KMDFVERSION$