Attach a debugger to your UM driver host process and set a bunch of breakpoints, AddDevice and D0Entry (if you registered it) and see how far you are getting in your code…
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Tuesday, June 17, 2008 5:15 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Driver for USB trackball pls help 
Hello Doron ,
( Sorry to call your last name.
)
As information that I have from you I created a HIDClass USB filter driver for trackball. I do not have a trackball to give its hardware id . So I used a temp id for it. (Is it ok?)
[Microsoft.NTx86]
%Trackball%=Trackball_Install,HID\Vid_xxxx&Pid_yyyy
I tried to install my trackball driver using following INF file. Every thing went smooth
* the device node created
* the lower filter is found in Details->Device Lower Filters
* Only one service is found in the Details->service section WUDFRd
But driver do not get started.
The device status section in device manager showed an error :- “This device cannot start. (Code 10)”
I just edited the skeleton INF file to create this. Is there any special tags to be added for a filter driver?
NB: I tried with Windows XP
//////////////////////////////
Errors:
Line 41: (E22.1.1002) Unable to include WINUSB.INF. Note that only system provided INFs may be specified with the INCLUDE directive.
Warnings:
Line 21: (W22.1.2077) System defined classes should usually not specify a class installer.
Line 51: (W22.1.2083) Section [STOLLTRACKBALL_INSTALL.NT.WDF] not referenced
Line 61: (W22.1.2083) Section [WINUSB_INSTALL] not referenced
Line 64: (W22.1.2083) Section [WUDFSTOLLTRACKBALL_INSTALL] not referenced
Annotated INF - Output from ChkInf
; (W22.1.9998) NOTE: The ChkInf tool does not verify the WDF sections and directives of the INF file.
; (W22.1.2212) No Copyright information found.
;
; STOLLTrackball.inf
;
[Version]
Signature=“$Windows NT$”
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%MSFTUMDF%
DriverVer=06/17/2008,6.0.6001.18000
CatalogFile=WUDF.cat
[Manufacturer]
%MSFTUMDF%=Microsoft,NTx86
[Microsoft.NTx86]
%STOLLTrackball%=STOLLTrackball_Install,HID\Vid_xxxx&Pid_yyyy
[ClassInstall32]
; (W22.1.2077) System defined classes should usually not specify a class installer.
AddReg=STOLLTrackballClass_RegistryAdd
[STOLLTrackballClass_RegistryAdd]
HKR,%ClassName%
HKR,Icon,“-10”
[SourceDisksFiles]
STOLLTrackball.dll=1
WudfUpdate_01007.dll=1
WdfCoInstaller01007.dll=1
WinUsbCoinstaller.dll=1
[SourceDisksNames]
1 = %MediaDescription%
; =================== STOLL Trackball Device ==================================
[STOLLTrackball_Install.NT]
CopyFiles=UMDriverCopy
Include=WINUSB.INF ; Import sections from WINUSB.INF
; (E22.1.1002) Unable to include WINUSB.INF. Note that only system provided INFs may be specified with the INCLUDE directive.
Needs=WINUSB.NT ; Run the CopyFiles & AddReg directives for WinUsb.INF
[STOLLTrackball_Install.NT.hw]
AddReg=STOLLTrackball_Device_AddReg
[STOLLTrackball_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall
AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall ; this service is installed because its a filter.
[STOLLTrackball_Install.NT.Wdf]
; (W22.1.2083) Section [STOLLTRACKBALL_INSTALL.NT.WDF] not referenced
KmdfService=WINUSB, WinUsb_Install
UmdfDispatcher=WinUsb
UmdfService=WUDFSTOLLTrackball,WUDFSTOLLTrackball_Install
UmdfServiceOrder=WUDFSTOLLTrackball
[STOLLTrackball_Install.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles
[WinUsb_Install]
; (W22.1.2083) Section [WINUSB_INSTALL] not referenced
KmdfLibraryVersion = 1.7
[WUDFSTOLLTrackball_Install]
; (W22.1.2083) Section [WUDFSTOLLTRACKBALL_INSTALL] not referenced
UmdfLibraryVersion=1.7.0
DriverCLSID = “{f7e408d9-e950-474b-adc3-74f99335b4e1}”
ServiceBinary= “%12%\UMDF\STOLLTrackball.dll”
[STOLLTrackball_Device_AddReg]
HKR,“LowerFilters”,0x00010008,“WinUsb” ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
LoadOrderGroup = Base
[WinUsb_ServiceInstall]
DisplayName = %WinUsb_SvcDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WinUSB.sys
[CoInstallers_AddReg]
HKR,CoInstallers32,0x00010000,“WudfUpdate_01007.dll”, “WinUsbCoinstaller.dll”, “WdfCoInstaller01007.dll,WdfCoInstaller”
[CoInstallers_CopyFiles]
WudfUpdate_01007.dll
WdfCoInstaller01007.dll
WinUsbCoinstaller.dll
[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to driversMdf
CoInstallers_CopyFiles=11
[UMDriverCopy]
STOLLTrackball.dll
; =================== Generic ==================================
[Strings]
MSFTUMDF=“STOLL”
MediaDescription=“STOLL Trackball Driver Installation Media”
ClassName=“STOLL Trackball”
WudfRdDisplayName=“Windows Driver Foundation - User-mode Driver Framework Reflector”
STOLLTrackball=“STOLL Trackball Device”
WinUsb_SvcDesc=“WinUSB Driver”
Expecting Reply
Bachu
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