ljcheng12
驱动牛犊
驱动牛犊
  • 注册日期2003-04-16
  • 最后登录2009-07-30
  • 粉丝0
  • 关注0
  • 积分30分
  • 威望3点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
阅读:2193回复:5

在指定位置找不到硬件信息

楼主#
更多 发布于:2003-05-26 08:11
    我用driverstudio生成了一个USB的驱动程序(在生成USB驱动程序时我选的是98/2000系统),并且编译通过没有错误生成了一个myusb.sys文件,但当我在98系统接上我的USB硬件,选择从磁盘安装该驱动程序时,系统指示:“在指定位置找不到硬件信息”。我换到2000系统中出现同样的错误,不知道是什么原因,希望各位指点一下!
谢谢!
邓小平同志说过:发展是硬道理! ljcheng12先生曰:发展离不开驱动! 我选择,我喜欢!
jinghuiren
驱动巨牛
驱动巨牛
  • 注册日期2002-06-01
  • 最后登录2008-10-27
  • 粉丝0
  • 关注0
  • 积分291分
  • 威望460点
  • 贡献值0点
  • 好评度428点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-05-27 14:08
class 应该是usb吧
另外把ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b}
去掉试试
ljcheng12
驱动牛犊
驱动牛犊
  • 注册日期2003-04-16
  • 最后登录2009-07-30
  • 粉丝0
  • 关注0
  • 积分30分
  • 威望3点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-05-27 13:47
这是由driverstudio直接生成的,没有改动的

;; Myusb.inf

;; *********  PLEASE READ ***********
;; The wizard cannot create exact INF files for all buses and device types.
;; You may have to make changes to this file in order to get your device to
;; install. In particular, hardware IDs and logical configurations require
;; intervention.
;;
;; The Win2K DDK documentation contains an excellent INF reference.

;--------- Version Section ---------------------------------------------------

[Version]
Signature=\"$Windows 95$\"
Provider=%ProviderName%

; If device fits one of the standard classes, use the name and GUID here,
; otherwise create your own device class and GUID as this example shows.

Class=NewDeviceClass
ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b}

;--------- SourceDiskNames and SourceDiskFiles Section -----------------------

; These sections identify source disks and files for installation.  They are
; shown here as an example, but commented out.

;[SourceDisksNames]
;1 = \"Install Disk\",Disk1,,

;[SourceDisksFiles]
;Myusb.sys = 1,,

;--------- ClassInstall/ClassInstall32 Section -------------------------------

; Not necessary if using a standard class

; 9X Style
[ClassInstall]
Addreg=Class_AddReg

; NT Style
[ClassInstall32]
Addreg=Class_AddReg

[Class_AddReg]
HKR,,,,%DeviceClassName%
HKR,,Icon,,\"-18\"

;--------- DestinationDirs Section -------------------------------------------

[DestinationDirs]
Myusb_Files_Driver = 10,System32\\Drivers

;--------- Manufacturer and Models Sections ----------------------------------

[Manufacturer]
%MfgName%=Mfg0

[Mfg0]
%DeviceDesc%=Myusb_DDI, USB\\VID_0EA0&PID_6803

;---------- DDInstall Sections -----------------------------------------------
; --------- Windows 9X -----------------

; Experimentation has shown that DDInstall root names greater than 19 characters
; cause problems in Windows 98

[Myusb_DDI]
CopyFiles=Myusb_Files_Driver
AddReg=Myusb_9X_AddReg

[Myusb_9X_AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,Myusb.sys
HKR, \"Parameters\", \"BreakOnEntry\", 0x00010001, 0

; --------- Windows NT -----------------

[Myusb_DDI.NT]
CopyFiles=Myusb_Files_Driver
AddReg=Myusb_NT_AddReg

[Myusb_DDI.NT.Services]
Addservice = Myusb, 0x00000002, Myusb_AddService

[Myusb_AddService]
DisplayName    = %SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\\System32\\Drivers\\Myusb.sys

[Myusb_NT_AddReg]
HKLM, \"System\\CurrentControlSet\\Services\\Myusb\\Parameters\",\\
\"BreakOnEntry\", 0x00010001, 0


; --------- Files (common) -------------

[Myusb_Files_Driver]
Myusb.sys

;--------- Strings Section ---------------------------------------------------

[Strings]
ProviderName=\"Your Company Name here\"
MfgName=\"Name of HW Manufacturer here\"
DeviceDesc=\"Description of Device here\"
DeviceClassName=\"Description of Device class here\"
SvcDesc=\"Description of NT service here\"

感谢您的再次指点!
邓小平同志说过:发展是硬道理! ljcheng12先生曰:发展离不开驱动! 我选择,我喜欢!
jinghuiren
驱动巨牛
驱动巨牛
  • 注册日期2002-06-01
  • 最后登录2008-10-27
  • 粉丝0
  • 关注0
  • 积分291分
  • 威望460点
  • 贡献值0点
  • 好评度428点
  • 原创分0分
  • 专家分0分
地板#
发布于:2003-05-27 13:33
那就不清楚了,把你的inf文件贴出来看看。
ljcheng12
驱动牛犊
驱动牛犊
  • 注册日期2003-04-16
  • 最后登录2009-07-30
  • 粉丝0
  • 关注0
  • 积分30分
  • 威望3点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2003-05-27 13:21
我是用USBVIEW这个软件看的呀,然后直接复制填在VID和PID里面的呀
邓小平同志说过:发展是硬道理! ljcheng12先生曰:发展离不开驱动! 我选择,我喜欢!
jinghuiren
驱动巨牛
驱动巨牛
  • 注册日期2002-06-01
  • 最后登录2008-10-27
  • 粉丝0
  • 关注0
  • 积分291分
  • 威望460点
  • 贡献值0点
  • 好评度428点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2003-05-27 10:30
vid/pid不匹配
游客

返回顶部