I am pretty sure you need a mfg section and you need to match against a hardware ID like any other pnp device stack.
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@live.co.uk
Sent: Thursday, October 16, 2008 5:27 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Filtering USB
Hi again,
Sorry for leaving this topic for a while, I’ve spent ages trying to get this to work, but I’m still not getting anywhere. I’ve tried using the method you suggested Doron, following the msports.inf example, but I’m clearly doing something wrong still!
I’ve pasted the INF that I’m using below, if you could tell me what I’m missing that’d be great.
Many thanks,
Al.
; RDXSIM inf file
[Version]
Signature = “$Windows NT$”
Class = USB
ClassGUID = {36FC9E60-C465-11CF-8056-444553540000}
Provider = %msft%
DriverVer = 08/06/2008,5.1.2600.0
;
; General installation section
;
[DefaultInstall.NT]
CopyFiles = @rdxsim.sys
Addreg = rdxsim.AddReg
[DestinationDirs]
DefaultDestDir = 12
[rdxsim.NT.HW]
AddReg=rdxsim.NT.HW.AddReg
[rdxsim.NT.HW.AddReg]
HKR,“UpperFilters”,0x00010008,“rdxsim”
[rdxsim.Service.Install]
DisplayName = %service_desc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\rdxsim.sys
LoadOrderGroup = PNP Filter
; Service installation section
[DefaultInstall.NT.Services]
AddService = rdxsim, , rdxsim.Service.Install
[rdxsim.Service.Install]
DisplayName = %service_desc%
ServiceType = 1
StartType = 0
ErrorControl = 0
ServiceBinary = %12%\rdxsim.sys
LoadOrderGroup = “PnP Filter”
[SourceDisksFiles]
rdxsim.sys=1
; Win2000
[SourceDisksNames]
1 = %diskid1%,\i386
; WinXP and later
[SourceDisksNames.x86]
1 = %diskid1%,\i386
[SourceDisksNames.ia64]
1 = %diskid1%,\ia64
[SourceDisksNames.amd64]
1 = %diskid1%,\amd64
;
; Localizable Strings
;
[Strings]
msft = “Microsoft Corporation”
service_desc = “RDXSIM Filter Driver”
diskid1 = “Microsoft Corp. Installation Disk #1 (rdxsim)”
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer