Doron,
If I run chkinf.bat on WUDFOsrUsbFx2.inf, I get the following. I understand the first error, not the second, nor the warnings. I would have expected only the first error for the sample.
Dean
Summary of ".\WUDFOsrUsbFx2.inf"
Total Errors: 2
Total Warnings: 6
Errors:
Line 9: (E22.1.1004) Provider listed is Microsoft, but should be the organization who wrote this INF.
Line 39: (E22.1.1002) Unable to include WINUSB.INF. Note that only system provided INFs may be specified with the INCLUDE directive.
Warnings:
Line 0: (W22.1.9998) NOTE: The ChkInf tool does not verify the WDF sections and directives of the INF file.
Line 0: (W22.1.2212) No Copyright information found.
Line 7: (W22.1.2215) Class Sample (ClassGUID {78A1C341-4539-11d3-B88D-00C04FAD5171}) is unrecognized.
Line 49: (W22.1.2083) Section [OSRUSB_INSTALL.NT.WDF] not referenced
Line 59: (W22.1.2083) Section [WINUSB_INSTALL] not referenced
Line 62: (W22.1.2083) Section [WUDFOSRUSBFX2_INSTALL] not referenced
Annotated INF:
; (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.
;
; WUDFOsrUsbFx2.inf - Install the OSR USB user-mode driver
;
[Version]
Signature="$Windows NT$"
Class=Sample
; (W22.1.2215) Class Sample (ClassGUID {78A1C341-4539-11d3-B88D-00C04FAD5171}) is unrecognized.
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
Provider=%MSFTUMDF%
; (E22.1.1004) Provider listed is Microsoft, but should be the organization who wrote this INF.
DriverVer=08/18/2007,6.0.6000.16386
CatalogFile=wudf.cat
[Manufacturer]
%MSFTUMDF%=Microsoft,NTx86
[Microsoft.NTx86]
%OsrUsbDeviceName%=OsrUsb_Install, USB\Vid_045e&Pid_94aa&mi_00
%OsrUsbDeviceName%=OsrUsb_Install, USB\VID_0547&PID_1002
[ClassInstall32]
AddReg=SampleClass_RegistryAdd
[SampleClass_RegistryAdd]
HKR,,,,%ClassName%
HKR,,Icon,,"-10"
[SourceDisksFiles]
WUDFOsrUsbFx2.dll=1
WudfUpdate_01005.dll=1
WdfCoInstaller01005.dll=1
[SourceDisksNames]
1 = %MediaDescription%
; =================== UMDF OsrUsb Device ==================================
[OsrUsb_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
[OsrUsb_Install.NT.hw]
AddReg=OsrUsb_Device_AddReg
[OsrUsb_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall ; flag 0x2 sets this as the service for the device
AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall ; this service is installed because its a filter.
[OsrUsb_Install.NT.Wdf]
; (W22.1.2083) Section [OSRUSB_INSTALL.NT.WDF] not referenced
KmdfService=WINUSB, WinUsb_Install
UmdfDispatcher=WinUsb
UmdfService=WUDFOsrUsbFx2, WUDFOsrUsbFx2_Install
UmdfServiceOrder=WUDFOsrUsbFx2
[OsrUsb_Install.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles
[WinUsb_Install]
; (W22.1.2083) Section [WINUSB_INSTALL] not referenced
KmdfLibraryVersion = 1.0
[WUDFOsrUsbFx2_Install]
; (W22.1.2083) Section [WUDFOSRUSBFX2_INSTALL] not referenced
UmdfLibraryVersion=1.5.0
DriverCLSID = "{0865b2b0-6b73-428f-a3ea-2172832d6bfc}"
ServiceBinary = "%12%\UMDF\WUDFOsrUsbFx2.dll"
[OsrUsb_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_01005.dll", "WdfCoInstaller01005.dll,WdfCoInstaller"
[CoInstallers_CopyFiles]
WudfUpdate_01005.dll
WdfCoInstaller01005.dll
[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to driversMdf
CoInstallers_CopyFiles=11
[UMDriverCopy]
WUDFOsrUsbFx2.dll
; =================== Generic ==================================
[Strings]
MSFTUMDF="Microsoft Internal (WDF:UMDF)"
MediaDescription="Microsoft Sample Driver Installation Media"
ClassName="WDF Samples"
WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
OsrUsbDeviceName="UMDF Sample Driver for OSR USB Fx2 Learning Kit"
WinUsb_SvcDesc="WinUSB Driver"