Windows防火墙编程

我用谷歌搜索了很多次,直到我创建了这个问题,所以如果有一些教程,请原谅我.我没找到他们.
如何在 Windows中编写防火墙应用程序?我想过在每个进程中都使用内联钩子的用户模式fiewall,但是有一个问题是我无法在Windows 7中挂钩csRSS.exe(它创建新进程).第二件事是它不是很干净而且会是确实被检测为恶意软件.
所以我认为我应该将内核模式的API挂钩作为驱动程序.但是有3个问题.

>首先我不知道内核API
用于Windows套接字.
>其次我没有任何内核经验
模式挂钩.
>第三我不知道是否
这是正确的方式.

别担心,我知道这并不容易,我不是一个有想法的初学者;).如果有人有好消息,请分享.
哦,我想写x86系统;).

解决方法

你需要 Windows Filtering Platform(WFP).

With the WFP API,developers can implement firewalls,intrusion detection systems,antivirus programs,network monitoring tools,and parental controls. WFP integrates with and provides support for firewall features such as authenticated communication and dynamic firewall configuration based on applications’ use of sockets API (application-based policy). WFP also provides infrastructure for IPsec policy management,change notifications,network diagnostics,and stateful filtering.

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...