Re: How a USB device driver can be loaded on the basis of CLASS of de vice.

Hi,

%USBStor.DeviceDesc%=USBStor, USB\Class_08

This is the device identifier to identify class of type 8(Storage I feel)

So instead of 8 u can specify ur class identifier in ur inf file

rgds,

Kupra

“NT Developers Interest List” wrote:

Hi All,
When a device is atached to USB port, PnP manager automatically
detect the device and asks for device driver first time. I have same type of
device but from different manufacturer. Driver installation procedure
requires manufacturer id and product id in inf file.

This is my inf for device. what do i change in inf file so that the same
driver could be loaded for all devices having same class of device?

jagdeesh

[Version]
Signature=“$CHICAGO$”
Class=USB
ClassGUID={363C9E60-C465-21CF-8056-4445532340000}
provider=%DCM%
DriverVer=03/15/2000

[SourceDisksNames]
1=“BTUsb Installation Disk”,

[SourceDisksFiles]
BTUSB.sys = 1
BTUSB.inf = 1

[Manufacturer]
%MfgName%=DCM Tech

[DCM Tech]
%USB\VID_0C10&PID_0000.DeviceDesc%=BTUSB.Dev, USB\VID_0C10&PID_0000

;[PreCopySection]
;HKR,NoSetupUI,1

[DestinationDirs]
BTUSB.Files.Ext = 10,System32\Drivers
BTUSB.Files.Inf = 10,INF

[BTUSB.Dev]
CopyFiles=BTUSB.Files.Ext, BTUSB.Files.Inf
AddReg=BTUSB.AddReg

[BTUSB.Dev.NT]
CopyFiles=BTUSB.Files.Ext, BTUSB.Files.Inf
AddReg=BTUSB.AddReg

[BTUSB.Dev.NT.Services]
Addservice = BTUSB, 0x00000002, BTUSB.AddService

[BTUSB.AddService]
DisplayName = %BTUSB.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\BTUSB.sys
LoadOrderGroup = Base

[BTUSB.AddReg]
HKR,DevLoader,*ntkern
HKR,NTMPDriver,BTUSB.sys
HKLM,“System\Currentcontrolset\Services\BTUsb\Parameters”,“MaximumTransferSi
ze”,0x10001,1024
HKLM,“System\Currentcontrolset\Services\BTUsb\Parameters”,“DebugLevel”,0x100
01,2

[BTUSB.Files.Ext]
BTUSB.sys

[BTUSB.Files.Inf]
BTUsb.Inf

;---------------------------------------------------------------;

[Strings]
DCM=“DCM Tech”
MfgName=“Ericsson”
USB\VID_0C10&PID_0000.DeviceDesc=“DCM Tech BlueStack Testing device”
BTUSB.SvcDesc=“Blue Tooth Driver”


You are currently subscribed to ntdev as: xxxxx@indiatimes.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com