⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test1.inf

📁 PC与AVR通过D12进行USB通讯全套资料
💻 INF
字号:
;; Test1.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 Windows DDK documentation contains an excellent INF reference.

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

[Version]
Signature="$Windows 95$"

; 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=TEST1
ClassGUID={a1553f83-4082-4687-a481-dacc43f3e9e6}
Provider=%ProviderName%


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

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

[Manufacturer]
%MfgName%=Mfg0

[Mfg0]
%DeviceDesc%=Test1_DDI, USB\VID_0471&PID_0222

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

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

[Test1_DDI]
CopyFiles=Test1_Files_Driver
AddReg=Test1_9X_AddReg

[Test1_9X_AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,test1.sys
HKR, "Parameters", "BreakOnEntry", 0x00010001, 0
; --------- Windows NT -----------------

[Test1_DDI.NT]
CopyFiles=Test1_Files_Driver
AddReg=Test1_NT_AddReg

[Test1_DDI.NT.Services]
Addservice = Test1, 0x00000002, Test1_AddService

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

[Test1_NT_AddReg]
HKLM, "System\CurrentControlSet\Services\Test1\Parameters",\
	"BreakOnEntry", 0x00010001, 0



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

[Test1_Files_Driver]
test1.sys

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

[Strings]
ProviderName="HUST"
MfgName="JRT"
DeviceDesc="TEST1"
DeviceClassName="TEST1"
SvcDesc="TEST1"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -