shjdriver
驱动牛犊
驱动牛犊
  • 注册日期2003-04-01
  • 最后登录2008-04-02
  • 粉丝0
  • 关注0
  • 积分277分
  • 威望30点
  • 贡献值0点
  • 好评度26点
  • 原创分0分
  • 专家分0分
阅读:855回复:3

驱动程序安装

楼主#
更多 发布于:2003-06-02 12:25
各位大虾我在win2k下编写了一个驱动程序,在win2k下可以正确安装,当在win98,winxp下硬件安装向导提示找不到.sys文件。请问如何才能正确在win98,winxp下安装。
我的inf文件为:
;--------- 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=Ports
DriverVer=04/27/2003,1.0.0.1
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]
;PartIoDriverShj.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]
PartIoDriverShj_Files_Driver = 10,System32\\Drivers

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

[Manufacturer]
%MfgName%=Mfg0

[Mfg0]
%DeviceDesc%=PartIoDriverShj_DDI, *PartIoDriverShj

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

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

[PartIoDriverShj_DDI]
CopyFiles=PartIoDriverShj_Files_Driver
AddReg=PartIoDriverShj_9X_AddReg

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

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

[PartIoDriverShj_DDI.NT]
CopyFiles=PartIoDriverShj_Files_Driver
AddReg=PartIoDriverShj_NT_AddReg

[PartIoDriverShj_DDI.NT.Services]
Addservice = PartIoDriverShj, 0x00000002, PartIoDriverShj_AddService

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

[PartIoDriverShj_NT_AddReg]
HKLM, \"System\\CurrentControlSet\\Services\\PartIoDriverShj\\Parameters\",\\
\"BreakOnEntry\", 0x00010001, 0


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

[PartIoDriverShj_Files_Driver]
PartIoDriverShj.sys

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

[Strings]
ProviderName=\"北奥\"
MfgName=\"华军\"
DeviceDesc=\"采集仪器\"
DeviceClassName=\"DACSHJ1 Device class \"
SvcDesc=\" DACSHJ1 NT service\"

最新喜欢:

blue_windblue_w...
shjdriver
驱动牛犊
驱动牛犊
  • 注册日期2003-04-01
  • 最后登录2008-04-02
  • 粉丝0
  • 关注0
  • 积分277分
  • 威望30点
  • 贡献值0点
  • 好评度26点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-06-05 15:27
I have already resolve it.The reason is that it is necessary to use 83 name mathod in win98.Thanks
lishzh
驱动牛犊
驱动牛犊
  • 注册日期2003-05-29
  • 最后登录2003-06-06
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-06-02 18:16
关注!
qinxg
驱动小牛
驱动小牛
  • 注册日期2002-11-15
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分37分
  • 威望27点
  • 贡献值0点
  • 好评度5点
  • 原创分0分
  • 专家分0分
地板#
发布于:2003-06-02 14:38
Signature不对吧
游客

返回顶部