gpt4 book ai didi

c - Microsoft 的 "stmedit"WFP 示例是否适用于 Windows 8?

转载 作者:太空宇宙 更新时间:2023-11-04 04:01:25 24 4
gpt4 key购买 nike

Microsoft 提供了一个名为 stmedit 的示例来演示 Windows 过滤平台 (WFP) 技术。你可以看看样本here .

此示例还分布在 Windows 7 DDK 中并且运行良好。但是,当尝试在 Windows 8 Release Preview(32 位和 64 位)上运行此示例时,它不起作用。

代码在 Visual Studio 2012 中构建良好,甚至可以作为驱动程序安装。事实上,它甚至可以用 net start stmedit 启动。但是,它不会修改任何网络流量,尽管它应该将网络流量中出现的任何“雨天”替换为“晴天”(我已使用其记录的注册表设置对其进行配置)。

有没有人能够让这个示例在 Windows 8 上运行?

最佳答案

来自 here :

Several changes have been made in the available functions and behavior of the Windows Filtering Platform that begin with Windows 8. Frequently, to take advantage of the new features, you must compile or recompile a callout driver that has the NTDDI_VERSION macro set to NTDDI_WIN8.

基本上,确保您正在检查正确的 NTDDI_VERSION。

关于c - Microsoft 的 "stmedit"WFP 示例是否适用于 Windows 8?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11247510/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com