📄 sampledev.inf
字号:
[Version]
Signature="$Windows NT$"
Provider=%S_Provider%
DriverVer=06/03/2004 1.0.0.0
; Default Install Section
; will be executed if "Install" is selected from the context menu of the INF file
[DefaultInstall.ntx86]
CopyFiles=_Files_sys, _Files_inf
AddReg=_AddReg_upp_drv, _AddReg_UnInstall
;******************************************************************************
; UnInstall Section
;------------------------------------------------------------------------------
[UnInstall]
DelFiles=_Files_sys, _Files_inf
DelReg=_DelReg_all
;******************************************************************************
; files sections
;------------------------------------------------------------------------------
; driver binaries
[_Files_sys]
SAMPLEDEV.SYS
; inf file
[_Files_inf]
SAMPLEDEV.INF
;******************************************************************************
; Destination Directories
;------------------------------------------------------------------------------
[DestinationDirs]
DefaultDestDir = 11 ; System32 directory
_Files_sys = 10,System32\Drivers
_Files_inf = 17 ; INF dir
;******************************************************************************
; Disk Layout
;------------------------------------------------------------------------------
[SourceDisksNames]
1=%S_DiskName%,"",1
[SourceDisksFiles]
SAMPLEDEV.SYS=1
SAMPLEDEV.INF=1
;******************************************************************************
; Registry sections
;------------------------------------------------------------------------------
[_AddReg_upp_drv]
; service key
HKLM,%S_DRV_ServiceKey%,Start,0x10001,1
HKLM,%S_DRV_ServiceKey%,Type,0x10001,1
HKLM,%S_DRV_ServiceKey%,ErrorControl,0x10001,1
HKLM,%S_DRV_ServiceKey%,ImagePath,0x20000,"\SystemRoot\System32\Drivers\SAMPLEDEV.SYS"
HKLM,%S_DRV_ServiceKey%,DisplayName,0x00000,%S_DRV_DisplayName%
HKLM,%S_DRV_ServiceKey%,Group,,"Base"
; event log
HKLM,%S_DRV_EventLogKey%,EventMessageFile,0x20000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\Drivers\SAMPLEDEV.SYS"
HKLM,%S_DRV_EventLogKey%,TypesSupported,0x10001,7
; uninstall entry
[_AddReg_UnInstall]
HKLM,%S_UnInstallKey%,DisplayName,,%S_UnInstallDisplayName%
HKLM,%S_UnInstallKey%,UninstallString,,"rundll32 setupapi.dll,InstallHinfSection UnInstall 4 %17%\SDKLPTCAN.inf"
; delete all registry entries
[_DelReg_all]
HKLM,%S_DRV_ServiceKey%
HKLM,%S_DRV_EventLogKey%
HKLM,%S_UnInstallKey%
HKLM,"Software\SDKTech\Driver Registration\SAMPLEDEV"
;******************************************************************************
; Localizable Strings
;------------------------------------------------------------------------------
[Strings]
S_Provider="Karoly Tamas"
S_DiskName="SAMPLEDEV Driver Disk"
S_DRV_ServiceKey="System\CurrentControlSet\Services\SAMPLEDEV"
S_DRV_ParamKey="System\CurrentControlSet\Services\SAMPLEDEV\Parameters"
S_DRV_EventLogKey="System\CurrentControlSet\Services\EventLog\System\SAMPLEDEV"
S_DRV_DisplayName="SAMPLEDEV Driver"
S_UnInstallKey="Software\Microsoft\Windows\CurrentVersion\Uninstall\SAMPLEDEV"
S_UnInstallDisplayName="Karoly Tamas: SAMPLEDEV"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -