Hi Experts,
I am trying a filter driver for OSR sample for USB in DDK under
C:\WinDDK\7600.16385.1\src\usb\usbsamp\sys.
For filter driver I am using a sample from DDK available in toaster under
toaster\kmdf\filter\generic. I am modifing USBSAMP.inf for loading generic
filter.
here is inf content:
;/*++
;
;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:
;
; USBSamp.INF
;
;Abstract:
; Installation inf for the Intel 82930 USB Test Board
;
;–*/
[Version]
Signature=“$WINDOWS NT$”
Class=Sample
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
Provider=%MSFT%
DriverVer=05/17/2012,6.1.7600.16385
CatalogFile=KmdfSamples.cat
; ================= Class section =====================
[ClassInstall32]
Addreg=SampleClassReg
[SampleClassReg]
HKR,0,%ClassName%
HKR,Icon,-5
[DestinationDirs]
DefaultDestDir = 12
; ================= Device section =====================
[Manufacturer]
%MfgName%=Microsoft,NTx86
; For Win2K
[Microsoft]
%USB\VID_0547&PID_1002.DeviceDesc%=usbsamp.Dev, USB\VID_0547&PID_1002 ;
OSR USB-FX
%USB\VID_045E&PID_930A.DeviceDesc%=usbsamp.Dev, USB\VID_045E&PID_930A ;
Intel 82930
%USB\VID_13CF&PID_2200.DeviceDesc%=usbsamp.Dev, USB\VID_13CF&PID_2200 ;
Intel 82930
; For XP and later
[Microsoft.NTx86]
%USB\VID_0547&PID_1002.DeviceDesc%=usbsamp.Dev, USB\VID_0547&PID_1002 ;
OSR USB-FX
%USB\VID_13CF&PID_2200.DeviceDesc%=usbsamp.Dev, USB\VID_13CF&PID_2200 ;
Intel 82930
%USB\VID_045E&PID_930A.DeviceDesc%=usbsamp.Dev, USB\VID_045E&PID_930A ;
Intel 82930
[usbsamp.Dev.NT]
CopyFiles=usbsamp.Files.Ext
*[usbsamp.Dev.NT.Services]
AddService = USBSampfilter, USBSampfilter.AddService
Addservice = usbsamp, 0x00000002, usbsamp.AddService*
*[USBSampfilter.AddService]
DisplayName = %filter.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
*ServiceBinary = %10%\System32\Drivers\USBSampfilter.sys
[usbsamp.AddService]
DisplayName = %usbsamp.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\usbsamp.sys
AddReg = usbsamp.AddReg
LoadOrderGroup = Base
[usbsamp.AddReg]
HKR,“Parameters”,“MaximumTransferSize”,0x10001,65536
HKR,“Parameters”,“DebugLevel”,0x10001,2
*HKR,“LowerFilters”,0x00010000,“UsbsampLower”*
[usbsamp.Files.Ext]
usbsamp.sys
USBSampfilter.sys
[SourceDisksNames]
1=%Disk_Description%,
[SourceDisksFiles]
usbsamp.sys = 1
USBSampfilter.sys = 1
;-------------- WDF Coinstaller installation
[DestinationDirs]
CoInstaller_CopyFiles = 11
[usbsamp.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”
*[usbsamp.Dev.NT.Wdf]
KmdfService = USBSampfilter, USBSampfilter_wdfsect
KmdfService = usbsamp, usbsamp_wdfsect*
[USBSampfilter_wdfsect]
KmdfLibraryVersion = 1.9
[usbsamp_wdfsect]
KmdfLibraryVersion = 1.9
;---------------------------------------------------------------;
[Strings]
MSFT = “Microsoft”
MfgName = “Intel/OSR”
Disk_Description= “usbsamp Installation Disk”
usbsamp.SvcDesc = “WDF Sample Driver for Intel 82930 USB Test Board”
ClassName = “Sample Device”
USB\VID_0547&PID_1002.DeviceDesc=“WDF Sample for OSR USB-FX2 Learning Kit”
USB\VID_045E&PID_930A.DeviceDesc=“WDF Sample for Intel 82930 USB Test Board”
USB\VID_13CF&PID_2200.DeviceDesc=“Test USB Device”
filter.SvcDesc = “Microsoft Toaster Filter Driver Refactored”
_________________________________________________________________________________________________\
Service for filter is being created but not getting started by enviornment
onm checking error it says “error 1077. Service never started”. Command
with USBSAMP.EXE
works fine but only osr sample gets all communication.
Wht could be the cause? Is my inf wrong or my approach is wrong? Can
anybody suggest correct approach?
Thanks
Sunil