.inf 文件 AddRegistry 节标志含义 (HKR,,"UpperFilters",0x00010008,"upperfilt") 0x00010008 代表什么?

发布于 2024-09-15 09:41:15 字数 1032 浏览 7 评论 0 原文

MSDN 安装筛选器驱动程序给出了一个示例文件(复制如下)。

[upperfilter_addreg] 部分中,有注册表行 HKR,,"UpperFilters",0x00010008,"upperfilt"

0x00010008 标志的含义是什么?

请注意,此文件用于安装上层过滤器驱动程序。
感谢微软提供的足智多谋的完整文档。

:
[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
:

At MSDN Installing a Filter Driver there is a sample file given (reproduced lower).

In the [upperfilter_addreg] section there is the registry line HKR,,"UpperFilters",0x00010008,"upperfilt".

What is the meaning of the 0x00010008 flag ?

Note that this file is meant to install an Upper Filter Driver.
Thank you microsoft for your great resourceful complete docs.

:
[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
:

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

生来就爱笑 2024-09-22 09:41:15

请参阅 WDK 中的帮助。

应该

FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND

更多的是 AddReg 指令本身上方行的注释中提供的内容。

See the help in the WDK.

Should be

FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND

so more its what is supplied in the comment in the line above the AddReg directive itself.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文