阅读:1213回复:5
谁能帮我看看我的inf(给分); Version Information ; ------------------- [Version] Signature="$CHICAGO$" Provider=%w% DriverVer=06/10/2004, 1.0.1.0 Class = Cb ClassGUID = {3B172C49-2C37-49bf-9EB6-62B18DACDB21} [ClassInstall] AddReg=Class_AddReg [ClassInstall32] AddReg=Class_AddReg [Class_AddReg] HKR,,,,%DeviceClassName% HKR,,Icon,,-5 ; Driver Information ; ------------------ [Manufacturer] %Mfg%=DeviceList [DeviceList] %DeviceDesc%=Install, PCI\VEN_103C&DEV_2102&SUBSYS_2102103C&REV_02 ; -------------------- [Install] CopyFiles=FilesToCopy AddReg=can_9X_AddReg Log_Config=Base1 [can_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,cb.sys HKR, "Parameters", "BreakOnEntry", 0x00010001, 0 [Base1] IRQConfig=3,4,5,7,9,10,11,14,15 [Install.NT] CopyFiles=FilesToCopy AddReg=cb_NT_addreg [cb_NT_AddReg] HKLM, "System\CurrentControlSet\Services\SY2102\Parameters",\ "BreakOnEntry", 0x00010001, 0 [FilesToCopy] cb.sys ,,,0x40 [ControlFlags] ExcludeFromSelect = * [PreCopySection] HKR,,NoSetupUI,,1 ; --------------------------- [Install.NT.Services] Addservice=cb, 0x00000002, Service_Info [Service_Info] DisplayName = %SvcDesc% ServiceType = 1 StartType = 3 ErrorControl = 1 ServiceBinary = %10%\System32\Drivers\cb.sys [DestinationDirs] DefaultDestDir=10, System32\Drivers ;---------------------------------------------------------------; [Strings] w="XMU LTD." Mfg="S Company" DeviceClassName="SY CANBUS ADAPTER" DeviceDesc=" SY2102 Cb PCI Adapter" SvcDesc=Cb 是在2000里调试的 这里面的类别是我用guidgen生成的,安装时总说windows无法加载驱动程序,不知道是不是inf的问题,用infcheck检查,语法要求太严格了,感觉检查不到什么问题,希望有人能帮帮我 |
|
|
沙发#
发布于:2004-06-16 09:57
Total Errors: 5
Total Warnings: 6 -------------------------------------------------------------------------------- Errors: Line 3: (E1081) Directive: CatalogFile required in section [Version] for WHQL digital signature. Line 33: (E1057) Unrecognized directive: LOG_CONFIG (may be device class specific) Line 49: (E1063) Invalid RegRoot Value: __QUOTED_STR_(4)__ Line 52: (E1111) [SourceDisksFiles] section not defined. Can't check CopyFiles sections. Line 83: (E1056) Section [SourceDisksNames] not found. Microsoft internal inf's using the LayoutFile directive can ignore (E1056) -------------------------------------------------------------------------------- Warnings: Line 1: (W2073) No Copyright information found Line 8: (W2019) Class CB (ClassGUID {3B172C49-2C37-49BF-9EB6-62B18DACDB21}) is unrecognized. Line 11: (W2083) Section [ClassInstall] not referenced Line 40: (W2083) Section [Base1] not referenced Line 51: (W2083) Section [FilesToCopy] not referenced Line 57: (W2083) Section [PreCopySection] not referenced -------------------------------------------------------------------------------- Annotated INF: ; Version Information ; (W2073) No Copyright information found ; ------------------- [Version] ; (E1081) Directive: CatalogFile required in section [Version] for WHQL digital signature. Signature="$CHICAGO$" Provider=%w% DriverVer=06/10/2004, 1.0.1.0 Class = Cb ; (W2019) Class CB (ClassGUID {3B172C49-2C37-49BF-9EB6-62B18DACDB21}) is unrecognized. ClassGUID = {3B172C49-2C37-49bf-9EB6-62B18DACDB21} [ClassInstall] ; (W2083) Section [ClassInstall] not referenced AddReg=Class_AddReg [ClassInstall32] AddReg=Class_AddReg [Class_AddReg] HKR,,,,%DeviceClassName% HKR,,Icon,,-5 ; Driver Information ; ------------------ [Manufacturer] %Mfg%=DeviceList [DeviceList] %DeviceDesc%=Install, PCIVEN_103C&DEV_2102&SUBSYS_2102103C&REV_02 ; -------------------- [Install] CopyFiles=FilesToCopy AddReg=can_9X_AddReg Log_Config=Base1 ; (E1057) Unrecognized directive: LOG_CONFIG (may be device class specific) [can_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,cb.sys HKR, "Parameters", "BreakOnEntry", 0x00010001, 0 [Base1] ; (W2083) Section [Base1] not referenced IRQConfig=3,4,5,7,9,10,11,14,15 [Install.NT] CopyFiles=FilesToCopy AddReg=cb_NT_addreg [cb_NT_AddReg] HKLM, "SystemCurrentControlSetServicesSY2102Parameters", "BreakOnEntry", 0x00010001, 0 ; (E1063) Invalid RegRoot Value: __QUOTED_STR_(4)__ [FilesToCopy] ; (W2083) Section [FilesToCopy] not referenced cb.sys ,,,0x40 ; (E1111) [SourceDisksFiles] section not defined. Can't check CopyFiles sections. [ControlFlags] ExcludeFromSelect = * [PreCopySection] ; (W2083) Section [PreCopySection] not referenced HKR,,NoSetupUI,,1 ; --------------------------- [Install.NT.Services] Addservice=cb, 0x00000002, Service_Info [Service_Info] DisplayName = %SvcDesc% ServiceType = 1 StartType = 3 ErrorControl = 1 ServiceBinary = %10%System32Driverscb.sys [DestinationDirs] DefaultDestDir=10, System32Drivers ;---------------------------------------------------------------; [Strings] w="XMU LTD." Mfg="S Company" DeviceClassName="SY CANBUS ADAPTER" DeviceDesc=" SY2102 Cb PCI Adapter" SvcDesc=Cb ; ERROR: (E1056) Section [SourceDisksNames] not found. Microsoft internal inf's using the LayoutFile directive can ignore (E1056) |
|
|
板凳#
发布于:2004-06-16 10:01
后面4个错误比较重要,第一个不用管
警告可以不理会,呵呵 个人认为 |
|
地板#
发布于:2004-06-16 10:50
为什么自己写这种文件。用ds自动生成一个不是更好吗? :D
|
|
地下室#
发布于:2004-06-28 20:29
用windriver 方便很多
|
|
5楼#
发布于:2004-06-29 08:35
既然是string,最后一个为什么没有引号
[Strings] w="XMU LTD." Mfg="S Company" DeviceClassName="SY CANBUS ADAPTER" DeviceDesc=" SY2102 Cb PCI Adapter" SvcDesc=Cb 可以把文件全放上来,光看看不到什么明显错误 |
|
|