what all I need is, when a usb device is inserted in any usb hub the driver run immediatly showing the status of connected device(s) and its full description.
I mean, the sample driver I am writing INF file for, should be installed in such a way so that it do it’s function I have stated in above line.
One thing I can not understand, In this sample (I have given the path in first post) there is one .exe and few others like .obj, .moc files are produced but not a single .sys file. what does it mean?
is it a kinda driver that doesn’t have any .sys file?
is it an application like MS Word, Winamp…etc ?
So far, To fill my requirements I have written usbview.inf file as below:
[Version]
Class = USB
ClassGuid = {36fc9e60-c465-11cf-8056-444553540000}
Signature = “$WINDOWS NT$”
Provider = IPS Students
CatalogFile = usbview.cat
DriverPackageType = UsbView
DriverVer=04/30/2009 1.0
[SourceDisksNames.x86]
1 = “UsbViewInstall”,
[SourceDisksFiles.x86]
usbview.exe = 1
[ClassInstall32]
Addreg=UsbViewClassReg
CopyFiles=UsbViewClassInstallerCopyFiles
[UsbViewClassReg]
HKR,0,%ClassName%
HKR,Icon,100
HKR,Installer32,UsbViewClassInstaller"
HKR,DeviceCharacteristics,0x10001,0x100
[UsbViewClassInstallerCopyFiles]
usbview.exe
[ClassInstall32.Services]
AddService = usbview, usbview_Service_Inst
[usbview_Service_Inst]
DisplayName = “Usb Tree View Service”
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\usbview.exe
LoadOrderGroup = Extended Base
its not complete though, I cant decide what entries should I make further to meet my requirements.
waiting for your help