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

📄 intwdm.inf

📁 对您开发wdm驱动肯定会有帮助的
💻 INF
字号:
;; Intwdm.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=Unknown
;Class=NewDeviceClass
ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b}

;--------- 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",,

[SourceDisksFiles]
Intwdm.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]
Intwdm_Files_Driver = 10,System32\Drivers

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

[Manufacturer]
%MfgName%=Mfg0

[Mfg0]
%DeviceDesc%=Intwdm_DDI, !YOUR HARDWARE ID HERE!

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

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

[Intwdm_DDI]
CopyFiles=Intwdm_Files_Driver
AddReg=Intwdm_9X_AddReg
LogConfig=Intwdm_Config

[Intwdm_9X_AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,Intwdm.sys

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

[Intwdm_DDI.NT]
CopyFiles=Intwdm_Files_Driver
LogConfig=Intwdm_Config

[Intwdm_DDI.NT.Services]
Addservice = Intwdm, 0x00000002, Intwdm_AddService

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

; ------ Logical Config (common) -------

[Intwdm_Config]
; This is the logical configuration for the device. If the device has no
; hardware resources, you can remove this section, and remove the reference
; to it in section [Intwdm_Device]
;
ConfigPriority=NORMAL;HARDRECONFIG
; The allowed values for ConfigPriority are:
;	HARDWIRED 		Cannot be reset in any way 
;	DESIRED 		Soft Configurable most optimal 
;	NORMAL 			Soft Configured medium optimal 
;	SUBOPTIMAL 		Soft Configured least optimal 
;	DISABLED 		Hardware disabled 
;	RESTART 		Requires Windows restart to affect 
;	REBOOT 			Requires system reboot to affect 
;	POWEROFF 		Requires power cycle to affect 
;	HARDRECONFIG 	Requires Jumper setting 
;
IRQConfig=4,5,9,10,11
;IRQConfig=IRQNUM 	
;; TODO:	You must replace IRQNUM in the line above with the correct IRQ for your device

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

[Intwdm_Files_Driver]
Intwdm.sys

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

[Strings]
ProviderName="Your Company Name here"
MfgName="Name of HW Manufacturer here"
DeviceDesc="WDM Interrupt 演示"
DeviceClassName="其它设备
SvcDesc="Description of NT service here"

⌨️ 快捷键说明

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