📄 basic.inf
字号:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Version information
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Version]
Signature = "$Windows NT$"
Class=Sample
ClassGUID={C3077FCD-9C3C-482f-9317-460712F23EFA}
Provider=%MFGNAME%
CatalogFile=basic.cat
DriverVer= 01/21/2005
;copyright Bruno van Dooren
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; standard INF sections
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;top level section for device installation. contains the list of
;;devices for which this INF file is meant
[Manufacturer]
%MFGNAME%=DeviceList
;;identify the source disks of the installation package
[SourceDisksNames]
1=%INST_DISK_NAME%
;;identify the files that are included in the installation package
[SourceDisksFiles]
basic.sys=1,objchk_wxp_x86\i386\,
WdfCoinstaller01000.dll=1,,
;;specifiy the destination folder for the different CopyFiles sections.
;;all file actions that do not have a key in the DecstinationDirs section
;;will be done in to DefaultDestDir
;;WDM and WDF drivers have to go into %windir%\system32\drivers
;;%windir% has number 10. %windir%\system32 has number 11
[DestinationDirs]
DefaultDestDir=10,System32\drivers
ClassInstall32_CopyFiles=11
CoInstaller_CopyFiles = 11
;;Specify the list of devices that are
;;supported by our driver.
[DeviceList]
%DEV_DESCRIPTION%=DriverInstall,USB\VID_0547&PID_1002
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Class installation
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[ClassInstall32]
AddReg=ClassInstall32_AddReg
CopyFiles=ClassInstall32_CopyFiles
[ClassInstall32_AddReg]
HKR,,,,"Sample device drivers"
HKR,,Icon,,101
[ClassInstall32_CopyFiles]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; device installation
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;specify that this is the installation
;;for nt based systems.
[DriverInstall.ntx86]
DriverVer=27/12/2005,1.0.0.1
CopyFiles=DriverCopyFiles
[DriverCopyFiles]
basic.sys,,,2
;;tell the PNP manager which file contains the entry point, and
;;how it has to start.
[DriverInstall.ntx86.Services]
AddService=wdf_basic,2,DriverService
[DriverService]
ServiceType=1 ;;kernel mode driver
StartType=3 ;;start on demand
ErrorControl=1 ;;normal error handling.
ServiceBinary=%10%\system32\drivers\basic.sys
[DriverInstall.ntx86.hw]
AddReg=DriverHwAddReg
[DriverHwAddReg]
HKR,,SampleInfo,,"Basic registry key"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; WDF Coinstaller installation
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[DriverInstall.ntx86.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles
[CoInstaller_CopyFiles]
WdfCoinstaller01000.dll,,,2
[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoinstaller01000.dll,WdfCoInstaller"
[DriverInstall.ntx86.Wdf]
KmdfService = basic, basic_wdfsect
[basic_wdfsect]
KmdfLibraryVersion = 1.0
[Strings]
MFGNAME="Driver factory"
INSTDISK=" Installation Disc"
DEV_DESCRIPTION="Basic WDF device"
INST_DISK_NAME="Basic WDF device driver installation disk"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -