无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 3265|回复: 3
打印 上一主题 下一主题

[求助] 特定程序的驱动(INF)自己能不能添加新品支持

[复制链接]
跳转到指定楼层
1#
发表于 2021-1-2 19:05:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
由于一些特殊的程序,需要特定的驱动,可惜只支持到ICH 1-10和3400(即最高只支持H55),我想给它支持到1150平台,可行吗?
下面是按照INF
[Version]
Signature="$WINDOWS NT$"
Class=WdcHdd
ClassGuid={FF7E9C41-9555-4e2d-8E94-FCBF63CD0E23}
Provider=%WDC%
DriverVer=06/09/2009,2.00

[Manufacturer]
%MFGNAME% = ManufName,NT,NTia64,NTAMD64

[DestinationDirs]
DefaultDestDir = 12

[ManufName]
%Modem3% = Modem3, USB\VID_1B55&PID_B400

[ManufName.NT]
%Modem3% = Modem3.NT, USB\VID_1B55&PID_B400

[ManufName.NTia64]
%Modem3% = Modem3.NTia64, USB\VID_1B55&PID_B400

[ManufName.NTAMD64]
%Modem3% = Modem3.NTAMD64, USB\VID_1B55&PID_B400

[Modem3.NTia64]
;CopyFiles=USBModemCopyFileSection
AddReg=Modem3.NTia64.AddReg


[USBModemCopyFileSection]
usbser.sys,,,0x20

[Modem3.NTia64.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[Modem3.NTia64.Services]
AddService=usbser, 0x00000002, DriverService

[DriverService]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\usbser.sys

; ================= Class section =====================

[ClassInstall32]
Addreg=WdcHddClassReg     

[WdcHddClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5
HKR,,DeviceCharacteristics,0x10001,0x100     ;Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GR;;;WD)(A;;GR;;;RC)" ;Allow generic all access to system, Admin, and built-in users.


; ================= Device Install section =====================

[ControlFlags]
ExcludeFromSelect=*


[Manufacturer]
%WDC%=WDC

[SourceDisksFiles]
wdhdgen.sys=1

[SourceDisksNames]
1=%DISK_NAME%,

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[WDC]
; DisplayName                 Section           DeviceId
; -----------                 -------           --------
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_24C1        ; Intel ICH4
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_24CA        ; Intel ICH4
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_24CB        ; Intel ICH4
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_24D1        ; Intel ICH5
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_24DB        ; Intel ICH5
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_25A2        ; Intel ICH5
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_25A3        ; Intel ICH5
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_2651        ; Intel ICH6
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_2652        ; Intel ICH6
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_2653        ; Intel ICH6
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_266F        ; Intel ICH6
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_27C0        ; Intel ICH7
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_27DF        ; Intel ICH7
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_2820        ; Intel ICH8
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_2825        ; Intel ICH8
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_2920        ; Intel ICH9
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_2926        ; Intel ICH9
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_3A20        ; Intel ICH10
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_3A26        ; Intel ICH10
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_3B26        ; Intel 5/3400 Series 2 port SATA Controller
%WdHdGen_Intel.DRVDESC%=      WdHdGen_Inst,     PCI\VEN_8086&DEV_3B28        ; Intel 5/3400 Series 4 port SATA Controller
%WdHdGen_Intel.DRVDESC%=     WdHdGen_Inst,      PCI\VEN_8086&DEV_1C02        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_1C03        ; Intel 6/C200 Series 4 port SATA Controller
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3B22        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3B23        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3B29        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3B24        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3B25        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3B2B        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3B2C        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3B2F        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2822        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_282A        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2922        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2925        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2929        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3A02        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3A03        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3A22        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3A23        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3A25        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_292C        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_3A05        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2651        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2681        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2682        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2683        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_27C1        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_27C3        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_27C5        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_27C6        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2821        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2824        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2829        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2923        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_5029        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2822        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_24D1        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_24DF        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_25B0        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2652        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2652        ;
%WdHdGen_Intel.DRVDESC%=    WdHdGen_Inst,       PCI\VEN_8086&DEV_2653        ;


%WdHdGen_ITE.DRVDESC%=              WdHdGen_Inst,     PCI\VEN_1283&DEV_8211        ; ITE ATA/ATAPI Controller
%WdHdGen_ITE.DRVDESC%=              WdHdGen_Inst,     PCI\VEN_1283&DEV_8213             

%WdHdGen_JMicron.DRVDESC%=    WdHdGen_Inst,     PCI\VEN_197B&DEV_2368        ; JMicron Standard Dual Channel PCI IDE Controller
%WdHdGen_JMicron.DRVDESC%=    WdHdGen_Inst,     PCI\VEN_197B&DEV_2363
%WdHdGen_JMicron.DRVDESC%=    WdHdGen_Inst,     PCI\VEN_197B&DEV_2360        

%WdHdGen_Marvell.DRVDESC%=    WdHdGen_Inst,     PCI\VEN_11AB&DEV_6101        ; Marvell Standard Dual Channel PCI IDE Controller
%WdHdGen_Marvell.DRVDESC%=    WdHdGen_Inst,     PCI\VEN_11AB&DEV_6121        ;
%WdHdGen_Marvell.DRVDESC%=    WdHdGen_Inst,     PCI\VEN_1B4B&DEV_91A3        ; Marvell 6G SATA controller
%WdHdGen_Marvell.DRVDESC%=    WdHdGen_Inst,     PCI\VEN_1B4B&DEV_91A4        ;

%WdHdGen_Nvidia.DRVDESC%=     WdHdGen_Inst,     PCI\VEN_10DE&DEV_0266        ; NVIDIA Standard Dual Channel PCI IDE Controller
%WdHdGen_Nvidia.DRVDESC%=     WdHdGen_Inst,     PCI\VEN_10DE&DEV_0267
%WdHdGen_Nvidia.DRVDESC%=     WdHdGen_Inst,     PCI\VEN_10DE&DEV_0055

%WdHdGen_Promise.DRVDESC%=    WdHdGen_Inst,     PCI\VEN_105A&DEV_4D68        ; Promise
%WdHdGen_Promise.DRVDESC%=    WdHdGen_Inst,     PCI\VEN_105A&DEV_6268

%WdHdGen_SI.DRVDESC%=         WdHdGen_Inst,     PCI\VEN_1095&DEV_3112        ; Silicon Image 3112
%WdHdGen_SI.DRVDESC%=         WdHdGen_Inst,     PCI\VEN_1095&DEV_3512        ; Silicon Image 3512

%WdHdGen_VIA.DRVDESC%=        WdHdGen_Inst,     PCI\VEN_1106&DEV_0415        ; VIA Technologies IDE Controller

%WdHdGen_Primary.DRVDESC%=    WdHdGen_Inst,     Primary_IDE_Channel          ; Single Channel at 0x1F0 (XP)
%WdHdGen_Secondary.DRVDESC%=  WdHdGen_Inst,     Secondary_IDE_Channel        ; Single Channel at 0x170 (XP)
%WdHdGen_IdeChannel.DRVDESC%= WdHdGen_Inst,     Internal_IDE_Channel         ; Single Channel at 0x170, 0x1F0 (Vista)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[WdHdGen_Inst.NT]
CopyFiles=WdHdGen.CopyFiles

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[WdHdGen.CopyFiles]
wdhdgen.sys

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[WdHdGen_Inst.NT.Services]
AddService=WdHdGen,0x00000002,WdHdGen_Service

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[WdHdGen_Service]
DisplayName    = %WdHdGen.SVCDESC%                           
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\wdhdgen.sys                           

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[Strings]
WDC = "Western Digital"
ClassName = "WD HDD Test Device"
DISK_NAME = "WD Install Disk"

WdHdGen.SVCDESC = "Service for WD Drive PassThrough - Generic IDE Controller"
WdHdGen.DRVDESC = "WD Drive PassThrough - Generic IDE Controller"

WdHdGen_Intel.DRVDESC = "WD Drive PassThrough - Intel Generic IDE Controller"
WdHdGen_ITE.DRVDESC = "WD Drive PassThrough - ITE Generic IDE Controller"
WdHdGen_JMicron.DRVDESC = "WD Drive PassThrough - JMicron Generic IDE Controller"
WdHdGen_Marvell.DRVDESC = "WD Drive PassThrough - Marvell Generic IDE Controller"
WdHdGen_Nvidia.DRVDESC = "WD Drive PassThrough - Nvidia Generic IDE Controller"
WdHdGen_Promise.DRVDESC = "WD Drive PassThrough - Promise Generic IDE Controller"
WdHdGen_SI.DRVDESC = "WD Drive PassThrough - Silicon Image Generic IDE Controller"
WdHdGen_VIA.DRVDESC = "WD Drive PassThrough - VIA Technologies IDE Controller"

WdHdGen_Primary.DRVDESC = "WD Drive PassThrough - Primary IDE Channel"
WdHdGen_Secondary.DRVDESC = "WD Drive PassThrough - Secondary IDE Channel"
WdHdGen_IdeChannel.DRVDESC = "WD Drive PassThrough - Internal IDE Channel"
2#
发表于 2021-1-2 20:03:02 | 只看该作者
来学学
回复

使用道具 举报

3#
发表于 2021-1-3 16:07:00 | 只看该作者
怕是不好吧,如果这样的话一个驱动包能用几百年了
回复

使用道具 举报

4#
发表于 2021-1-3 20:53:47 | 只看该作者
谢谢分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-4-27 20:27

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表