windows 2000/xpWDM设备驱动程序开发光盘代码

源代码在线查看: charfilter.inf.txt

软件大小: 1714 K
上传用户: wangdatouay
关键词: windows xpWDM 2000 设备驱动
下载地址: 免注册下载 普通下载 VIP

相关代码

				; CharFilter.inf.txt - Install information file for the CharFilter Filter driver.  
				;
				;	It is not a complete .inf file.  It lists sections of a .inf file that need to be
				;	added to a WDM function driver's .inf file to have a filter driver loaded
				;	for the WDM device for Windows 9x and Windows 2000/XP.  It can be used as an upper 
				;	or lower filter.
				;
				;   TODO  Review the .inf file to install the WDM filter driver.
				;
				;
				;	TODO  Use the Co Installer DLL to install the WDM Filter.  
				;	IMPORTANT: See CharFilterDll.cpp for important Installation Notes.
				
				[Manufacturer]
				; 	This should already exist in the WDM function driver's .inf file
				;"TheVendor"=MANUF
				
				[MANUF]
				; 	This should already exist in the WDM function driver's .inf file
				;"DeviceDescription"=InstallSectionName, PLUG_AND_PLAY_HARDWARE_ID
				
				[InstallSectionName]
				; 	This should already exist in the WDM function driver's .inf file
				;CopyFiles=MyFileListSection
				;AddReg=MyAddRegistrySection
				
				[InstallSectionName.HW]
				AddReg=MyHWAddRegistrySection
				
				[InstallSectionName.NT]
				; 	This should already exist in the WDM function driver's .inf file
				;CopyFiles=MyFileListSection
				;AddReg=MyAddRegistrySection
				
				[InstallSectionName.NT.HW]
				AddReg=MyHWAddRegistrySectionNT
				
				[InstallSectionName.NT.Services]
				; 	There should exist an AddService directive for the WDM function driver that
				; 	is similar to the following line
				;
				;Addservice = TheWDMFunctionDriver, 0x00000002, TheService
				;
				; 	Add another directive for the WDM filter driver
				;
				Addservice = CharFilter,, CharFilterInst
				
				[CharFilterInst]
				DisplayName    = "CharFilter"
				ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
				StartType      = 3                  ; SERVICE_AUTO_START
				ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
				ServiceBinary  = %10%\System32\Drivers\CharFilter.sys
				LoadOrderGroup = Extended Base
				
				[MyAddRegistrySection]
				; 	This should already exist in the WDM function driver's .inf file
				;
				;
				
				[MyFileListSection]
				; 	This should already exist in the WDM function driver's .inf file
				;
				; 	The WDM function driver should already be listed.
				;TheWDMFunctionDriver.sys
				;
				; 	Add the WDM filter driver to the list of files
				;
				CharFilter.sys
				
				[MyHWAddRegistrySection]
				;
				;	This section is for installing PnP filter drivers under Windows 98.  
				;	This will add values to the hardware registry key of the device located
				;	at HKLM\Enum\WDM\PNP_ID\DeviceInstanceID
				;
				;	Note:  replace 'WDM' with bustype;  For instance, USB.
				;
				;	"LowerFilters" and "UpperFilters" are special values that indicate to
				; 	the operating system that filter drivers should be loaded along with the
				;	function driver and that control the load order of the drivers.  A driver specified
				;	with "LowerFilters" will be loaded before the function driver and its
				;	AddDevice routine will be called before the function driver's.  A driver
				;	specified with "UpperFilters" will be loaded after the function driver's
				;	and its AddDevice routine will be called after the function driver's.
				;
				;	This .inf file will use the CharFilter sample as a lower filter.  To use it as
				;	an upper filter, use the commented out directive.
				;
				;HKR,,"LowerFilters",0x00010000,"CharFilter.sys"
				HKR,,"UpperFilters",0x00010000,"CharFilter.sys"
				
				[MyHWAddRegistrySectionNT]
				;
				;	This section is for installing PnP filter drivers under Windows 2000/XP.  
				;	This will add values to the hardware registry key of the device located
				;	at HKLM\System\CurrentControlSet\Enum\WDM\PNP_ID\DeviceInstanceID
				;
				;	Note:  replace 'WDM' with bustype;  For instance, USB.
				;
				;	"LowerFilters" and "UpperFilters" are special values that indicate to
				; 	the operating system that filter drivers should be loaded along with the
				;	function driver and that control the load order of the drivers.  A driver specified
				;	with "LowerFilters" will be loaded before the function driver and its
				;	AddDevice routine will be called before the function driver's.  A driver
				;	specified with "UpperFilters" will be loaded after the function driver's
				;	and its AddDevice routine will be called after the function driver's.
				;
				;	This .inf file will use the CharFilter sample as a lower filter.  To use it as
				;	an upper filter, use the commented out directive.
				;
				;HKR,,"LowerFilters",0x00010000,"CharFilter"
				HKR,,"UpperFilters",0x00010000,"CharFilter"
				
							

相关资源