Dear Doran,
I have modified Toaster Inx file as mentioned below.
If the INX file is ok, How do I install this filter driver?
[Version]
Signature = “$WINDOWS NT$”
Class = Bluetooth
ClassGuid = {e0cbf06c-cd8b-4647-bb8a-263b43f0f974}
Provider = %MSFT%
DriverVer = 12/10/2014,5.00.2064
CatalogFile = KmdfSamples.cat
[DestinationDirs]
DefaultDestDir = 12
; ================= Class section =====================
[ClassInstall32]
Addreg=ToasterClassReg
CopyFiles=ToasterClassInstallerCopyFiles
[ToasterClassReg]
HKR,0,%ClassName%
HKR,Icon,100
HKR,Installer32,“tostrcls.dll,ToasterClassInstaller”
HKR,DeviceCharacteristics,0x10001,0x100 ;Use same security checks on relative opens
HKR,Security,“D:P(A;;GA;;;SY)(A;;GA;;;BA)” ;Allow generic all access to system and built-in Admin.
;This one overrides the security set by the driver
[ToasterClassInstallerCopyFiles]
tostrcls.dll
;*****************************************
; Toaster Device Filter Install Section
;*****************************************
[Manufacturer]
%StdMfg%=Standard,NT$ARCH$
; For Win2K
[Standard]
; DisplayName Section DeviceId
; ----------- ------- --------
%ToasterFilter.DeviceDesc%=ToasterFilter, USB\VID_0930&PID_0215
; For XP and later
[Standard.NT$ARCH$]
%ToasterFilter.DeviceDesc%=ToasterFilter, USB\VID_0930&PID_0215
[ToasterFilter.NT]
Include=bth.inf
Needs=BthUsb.NT
CopyFiles=ToasterFilter.NT.Copy
[ToasterFilter.NT.Copy]
filter.sys
[ToasterFilter.NT.HW]
AddReg = ToasterFilter.NT.HW.AddReg
[ToasterFilter.NT.HW.AddReg]
HKR,“LowerFilters”,0x00010000,“ToasterFilter”
;*****************************************
; Toaster Device Filter Service Section
;*****************************************
[ToasterFilter.NT.Services]
;Do not specify SPSVCINST_ASSOCSERVICE on filter drivers.
Addservice = BTHUSB, 0x00000002, BthUsb_Service_Inst, BthUsb_EventLog_Inst
Addservice = BTHPORT, , BthPort_Service_Inst, BthPort_EventLog_Inst
AddService = ToasterFilter, filter_Service_Inst
[filter_Service_Inst]
DisplayName = %filter.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\filter.sys
;*************************
; Source file information
;*************************
[SourceDisksNames]
1 = %DiskId1%,“”
[SourceDisksFiles]
filter.sys = 1,
tostrcls.dll = 1,
;
;— ToasterFilter Coinstaller installation ------
;
[DestinationDirs]
ToasterClassInstallerCopyFiles = 11
ToasterFilter_CoInstaller_CopyFiles = 11
[ToasterFilter.NT.CoInstallers]
AddReg = ToasterFilter_CoInstaller_AddReg
CopyFiles = ToasterFilter_CoInstaller_CopyFiles
[ToasterFilter_CoInstaller_AddReg]
HKR,CoInstallers32,0x00010000, “WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller”
[ToasterFilter_CoInstaller_CopyFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll
[SourceDisksFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1 ; make sure the number matches with SourceDisksNames
[ToasterFilter.NT.Wdf]
KmdfService = ToasterFilter, Filter_wdfsect
[Filter_wdfsect]
KmdfLibraryVersion = $KMDFVERSION$
[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
MSFT = “Microsoft”
StdMfg = “(Standard system devices)”
ClassName = “Toaster”
DiskId1 = “Toaster Filter Installation Disk #1”
ToasterFilter.DeviceDesc = “Microsoft Toaster Filter”
filter.SvcDesc = “Microsoft Toaster Filter Driver Refactored”
Toaster.SVCDESC = “Microsoft WDF Toaster Featured Device Driver”