c++ - 代码 在 C++、Windows 7 中阻止进程的端口

标签 c++ windows winsock

我正在开发一个 Windows 防火墙作为我的最后一年项目。为此,我想阻止 C++ 中进程的端口。应该使用哪个 API 来执行此操作,或者是否有任何可以重写的 KERNEL MODE API(例如 PsSetCreateNrocessNotifyRoutine)?

最佳答案

对于 Windows Vista 及更高版本,您应该使用 Windows Filtering Platform ,可以从用户模式和内核模式访问。请参阅this article举个例子。

关于c++ - 代码 在 C++、Windows 7 中阻止进程的端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13886249/

相关文章:

windows - 选择正确的 Windows 目录来安装软件并允许自动更新

winsock - Winsock 中的 QoS API 有用吗?

c++ - C++20 中概念的语法

c++ - "local variables at the outermost scope of the function may not use the same name as any parameter"是什么意思?

c++ - 如何确定 POINT 是否在按钮区域内

c++ - 服务器客户端通过原始数据错误发送接收结构 C++

c++ - Winsock 端口监听器

c++ - 当我尝试将范围值存储为8位固定宽度整数时,它向我显示了其他一些值[ASCII]

c++ - 没有得到正确的功能报告

c# - 如何在不进行轮询的情况下通知我的 C# Windows 应用程序网络状态更改?