首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

请驱动高手帮忙???

请驱动高手帮忙???

这是我近来看到的一个inf的txt文档,我想明白里面的每一行的大体作用会对我的硬件调试有帮助.请高手帮帮我这个门外汉^

内容如下:

;; SAA7134.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={4d36e96c-e325-11ce-bfc1-08002be10318}

;--------- 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]
;SAA7134.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]
SAA7134_Files_Driver = 10,System32\Drivers

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

[Manufacturer]
%MfgName%=Mfg0

[Mfg0]

; PCI hardware IDs use the form
;   PCI\VEN_aaaa&DEV_bbbb&SUBSYS_cccccccc&REV_dd
;
%DeviceDesc%=SAA7134_DDI, PCI\VEN_1131&DEV_7134
%DeviceDesc%=SAA7134_DDI, PCI\VEN_1131&DEV_7130
;---------- DDInstall Sections -----------------------------------------------
; --------- Windows 9X -----------------

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

[SAA7134_DDI]
CopyFiles=SAA7134_Files_Driver
AddReg=SAA7134_9X_AddReg

[SAA7134_9X_AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,SAA7134.sys
HKR, "Parameters", "BreakOnEntry", 0x00010001, 0

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

[SAA7134_DDI.NT]
CopyFiles=SAA7134_Files_Driver
AddReg=SAA7134_NT_AddReg

[SAA7134_DDI.NT.Services]
Addservice = SAA7134, 0x00000002, SAA7134_AddService

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

[SAA7134_NT_AddReg]
HKLM, "System\CurrentControlSet\Services\SAA7134\Parameters",\
 "BreakOnEntry", 0x00010001, 0


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

[SAA7134_Files_Driver]
SAA7134.sys

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

可以在每一行后面加上注释的话真是感激不尽,谢谢!!

返回列表