fog_qin
驱动牛犊
驱动牛犊
  • 注册日期2002-03-28
  • 最后登录2004-02-25
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1299回复:3

请教: INF 的问题.

楼主#
更多 发布于:2002-12-10 16:01
    请问各位高手:
    在USB的WDM的驱动程序安装文件INF中,有两个参数应怎么设置:
  
    ClassGUID = ?
    Class = ?
我的驱动程序怎么老是装不上呢??????
    在2000DDK的tools目录下,有个工具:geninf, 我是用它生成的INF文件,

[Version]
Signature=\"$Windows NT$\"
Provider=%hic%
ClassGUID={36fc9e60-c465-11cf-8056-444553540000}
Class=USB
CatalogFile=usb_hd.cat
DriverVer=12/10/2002

[DestinationDirs]
DefaultDestDir   = 12

;
; Driver information
;

[Manufacturer]
%hic%   = hic.Mfg

[hic.Mfg]
%hic.DeviceDesc0% = usb_hd_driver, USB\\VID_0000&PID_0000


;
; General installation section
;

[usb_hd_driver]

;
; File sections
;


;
; Service Installation
;

[usb_hd_driver.Services]
AddService = usb_hd_driver, 0x00000002 , usb_hd_Service_Inst, usb_hd_EventLog_Inst

[usb_hd_Service_Inst]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Pointer Port
ServiceBinary  = %12%\\usb_hd_driver.sys


[usb_hd_EventLog_Inst]
AddReg = usb_hd_EventLog_AddReg

[usb_hd_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,\"%SystemRoot%\\System32\\IoLogMsg.dll;%SystemRoot%\\System32\\drivers\\usb_hd_driver.sys\"
HKR,,TypesSupported,0x00010001,7




;
; Source file information
;

[SourceDisksNames.x86]
1 = %DiskId1%,,,\"\"

[SourceDisksFiles]
; Files for disk haier-ic Installation Disk #1 (USB)
usb_hd_driver.sys = 1,,


[Strings]

;
; Non-Localizable Strings
;

REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001
SERVICEROOT    = \"System\\CurrentControlSet\\Services\"

;
; Localizable Strings
;

hic.DeviceDesc0 = \"my vid:0000 device\"
DiskId1 = \" Installation Disk #1 (USB)\"
hic = \"hic\"

最新喜欢:

BeshyBeshy
wfoog
驱动牛犊
驱动牛犊
  • 注册日期2002-11-20
  • 最后登录2003-04-25
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-12-10 16:32
ClassGUID是通过向导选择而生成的。Class也是同样的道理。
不会你连自己的驱动支持的是什么设备也不知道吧。
阿弥陀佛!阿弥陀佛!阿弥陀佛!
wfoog
驱动牛犊
驱动牛犊
  • 注册日期2002-11-20
  • 最后登录2003-04-25
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-12-10 16:35
另外你应在file节补上

;
; File sections
;

[DriverInstall.NT]
CopyFiles=DriverCopyFiles

[DriverCopyFiles]
你驱动的名字.sys,,,2
阿弥陀佛!阿弥陀佛!阿弥陀佛!
ydyuse
驱动老牛
驱动老牛
  • 注册日期2002-07-25
  • 最后登录2005-03-26
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2002-12-10 16:37
ClassGUID={36fc9e60-c465-11cf-8056-444553540000}
Class=USB
是对的。
生命驱动,活力无限!
游客

返回顶部