这个文件你参考一下,安装文件不应该是问题
;/*++
;
;Copyright(c)MicrosoftCorporation.Allrightsreserved.
;
;THISCODEANDINFORMATIONISPROVIDED"ASIS"WITHOUTWARRANTYOFANY
;KIND,EITHEREXPRESSEDORIMPLIED,INCLUDINGBUTNOTLIMITEDTOTHE
;IMPLIEDWARRANTIESOFMERCHANTABILITYAND/ORFITNESSFORAPARTICULAR
;PURPOSE.
;
;ModuleName:
;
;USBSamp.INF
;
;Abstract:
;InstallationinffortheIntel82930USBTestBoard
;
;--*/
[Version]
Signature="$WINDOWSNT$"
Class=Sample
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
Provider=%MSFT%
DriverVer=03/20/2003,5.00.3788
CatalogFile=KmdfSamples.cat
;=================Classsection=====================
[ClassInstall32]
Addreg=SampleClassReg
[SampleClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5
[DestinationDirs]
DefaultDestDir=12
;=================Devicesection=====================
[Manufacturer]
%MfgName%=Microsoft,NT$ARCH$
;ForWin2K
[Microsoft]
%USB\VID_0547&PID_1002.DeviceDesc%=usbsamp.Dev,USB\VID_0547&PID_1002;OSRUSB-FX
%USB\VID_045E&PID_930A.DeviceDesc%=usbsamp.Dev,USB\VID_045E&PID_930A;Intel82930
;ForXPandlater
[Microsoft.NT$ARCH$]
%USB\VID_0547&PID_1002.DeviceDesc%=usbsamp.Dev,USB\VID_0547&PID_1002;OSRUSB-FX
%USB\VID_045E&PID_930A.DeviceDesc%=usbsamp.Dev,USB\VID_045E&PID_930A;Intel82930
[usbsamp.Dev.NT]
CopyFiles=usbsamp.Files.Ext
[usbsamp.Dev.NT.Services]
Addservice=usbsamp,0x00000002,usbsamp.AddService
[usbsamp.AddService]
DisplayName=%usbsamp.SvcDesc%
ServiceType=1;SERVICE_KERNEL_DRIVER
StartType=3;SERVICE_DEMAND_START
ErrorControl=1;SERVICE_ERROR_NORMAL
ServiceBinary=%10%\System32\Drivers\usbsamp.sys
AddReg=usbsamp.AddReg
LoadOrderGroup=Base
[usbsamp.AddReg]
HKR,"Parameters","MaximumTransferSize",0x10001,65536
HKR,"Parameters","DebugLevel",0x10001,2
[usbsamp.Files.Ext]
usbsamp.sys
[SourceDisksNames]
1=%Disk_Description%,,,
[SourceDisksFiles]
usbsamp.sys=1
;--------------WDFCoinstallerinstallation
[DestinationDirs]
CoInstaller_CopyFiles=11
[usbsamp.Dev.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles
[CoInstaller_CopyFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll
[SourceDisksFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1;makesurethenumbermatcheswithSourceDisksNames
[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller"
[usbsamp.Dev.NT.Wdf]
KmdfService=usbsamp,usbsamp_wdfsect
[usbsamp_wdfsect]
KmdfLibraryVersion=$KMDFVERSION$
;---------------------------------------------------------------;
[Strings]
MSFT="Microsoft"
MfgName="Intel/OSR"
Disk_Description="usbsampInstallationDisk"
usbsamp.SvcDesc="WDFSampleDriverforIntel82930USBTestBoard"
ClassName="SampleDevice"
USB\VID_0547&PID_1002.DeviceDesc="WDFSampleforOSRUSB-FX2LearningKit"
USB\VID_045E&PID_930A.DeviceDesc="WDFSampleforIntel82930USBTestBoard" |