阅读:1140回复:3
inf文件中的类
我现在正在用DS做一个PCI卡的驱动,在安装时总说inf文件的一个服务项无效,唉,郁闷死了,我想是不是CLASS和CLASSGUID项无效,因为这两项我用的是DS自动生成的,请各位大侠指点迷津,谢谢,多谢。
|
|
沙发#
发布于:2004-05-18 14:06
你把那个INF搞出来,我们看一下
|
|
|
板凳#
发布于:2004-05-18 14:49
[Version]
Signature=\"$Windows 95$\" Class=NewDeviceClass ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b} Provider=%ProviderName% [SourceDisksNames] 1 = \"Install Disk\",Disk1,, [SourceDisksFiles] My9054.sys = 1,, [ClassInstall] Addreg=Class_AddReg [ClassInstall32] Addreg=Class_AddReg [Class_AddReg] HKR,,,,%DeviceClassName% HKR,,Icon,,\"-18\" [DestinationDirs] My9054Wdm_Files_Driver = 10,System32\\Drivers [Manufacturer] %MfgName%=Mfg0 [Mfg0] %DeviceDesc%=My9054Wdm_DDI, PCI\\VEN_10b5&DEV_9054&SUBSYS_905410b5&REV_00 [My9054Wdm_DDI] CopyFiles=My9054Wdm_Files_Driver AddReg=My9054Wdm_9X_AddReg [My9054Wdm_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,My9054.sys HKR, \"Parameters\", \"BreakOnEntry\", 0x00010001, 0 [My9054Wdm_DDI.NT] CopyFiles=My9054Wdm_Files_Driver AddReg=My9054Wdm_NT_AddReg [My9054Wdm_DDI.NT.Services] Addservice = My9054Wdm, 0x00000002, My9054Wdm_AddService [My9054Wdm_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\\System32\\Drivers\\My9054.sys [My9054Wdm_NT_AddReg] HKLM, \"System\\CurrentControlSet\\Services\\My9054Wdm\\Parameters\",\\\"BreakOnEntry\", 0x00010001, 0 [My9054Wdm_Files_Driver] My9054.sys [Strings] ProviderName=\"NJUST\" MfgName=\"PLX TECH\" DeviceDesc=\"Plx 9054\" DeviceClassName=\"PCI COMMON\" SvcDesc=\"PCI NT SEVRICE\" |
|
地板#
发布于:2004-05-18 14:55
上面是我的inf文件,我仅把一些注释去掉了,PCI有没有通用的类?如果有的话,告诉兄弟声,恳求大家帮忙看看,感激涕零。
|
|