当前位置:首页 > Windows程序 > 正文

【原创】《windows驱动开发技术详解》第4章实验总结二

2021-03-27 Windows程序

;;WDM_Driver inf文件--2015年8月14日 [Version] Signature = "$Windows NT$" Class = WDM_Driver ClassGUID = {EF2962F0-0D55-4bff-B8AA-2221EE8A79B0} Provider = cposture DriverVer = CatalogFile=WDM_Driver.cat CatalogFile.ntamd64=WDM_Driver.cat CatalogFile.nt=WDM_Driver.cat [ClassInstall32.NTamd64] AddReg=Class_AddReg [Class_AddReg] HKR,,,,%DeviceClassName% HKR,,Icon,,"-5" [SourceDisksNames] 1 = %DiskName%,, [SourceDisksFiles] WDM_Driver层次结构.sys = 1 WDM_Driver层次结构.sys = 1 [DestinationDirs] DefaultDestDir = 12 my_files_driver = 12 [my_files_driver] WDM_Driver层次结构.sys [my_files_driver64] WDM_Driver层次结构.sys [Manufacturer] %MfgName%=Mfg0,NT,NTamd64 [Mfg0.NT] %DeviceDesc%=InstallLauncher, PCI\VEN_9999&DEV_9999 [Mfg0.NTamd64] %DeviceDesc%=InstallLauncher, PCI\VEN_9999&DEV_9999 ;---------- DDInstall Sections ----------------------------------------------- [InstallLauncher.NT] CopyFiles=my_files_driver AddReg=Install_NT_AddReg [InstallLauncher.NT.Services] Addservice = WDM_Driver, 0x00000002, Sys_AddService [Sys_AddService] DisplayName = %DeviceDesc% ServiceType = 1 StartType = 3 ErrorControl = 1 ServiceBinary = %12%\WDM_Driver层次结构.sys [Install_NT_AddReg] HKLM, "System\CurrentControlSet\Services\WDM_Driver\Parameters","BreakOnEntry", 0x00010001, 0 ;---------------------64位支持--------------- [InstallLauncher.NTamd64] CopyFiles=my_files_driver64 AddReg=Install_NT_AddReg64 [InstallLauncher.NTamd64.Services] Addservice = WDM_Driver, 0x00000002, Sys_AddService64 [Sys_AddService64] DisplayName = %DeviceDesc% ServiceType = 1 StartType = 3 ErrorControl = 1 ServiceBinary = %12%\WDM_Driver层次结构.sys [Install_NT_AddReg64] HKLM, "System\CurrentControlSet\Services\WDM_Driver\Parameters","BreakOnEntry", 0x00010001, 0 [Strings] MfgName="cpostute" DeviceDesc="WDM_Driver" DiskName="WDM_Driver Source Disk" DeviceClassName = WDM_Driver

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/68390.html