在MSDN 安装过滤器驱动程序中给出了一个示例文件(转载下方)。
在该[upperfilter_addreg]
部分有注册表行HKR,,"UpperFilters",0x00010008,"upperfilt"
。
0x00010008
国旗的含义是什么?
请注意,此文件用于安装 Upper Filter Driver。
感谢 microsoft 提供的足智多谋的完整文档。
:
[DestinationDirs]
upperfilter_copyfiles = 12
[upperfilter_inst]
CopyFiles = upperfilter_copyfiles
AddReg = upperfilter_addreg
[upperfilter_copyfiles]
upperfilt.sys
[upperfilter_addreg]
; append this service to existing REG_MULTI_SZ list, if any
HKR,,"UpperFilters",0x00010008,"upperfilt"
[upperfilter_inst.Services]
AddService = upperfilt,,upperfilter_service
[upperfilter_service]
DisplayName = %upperfilter_ServiceDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\upperfilt.sys
: