如何识别在c ++中尝试访问网络的进程 [英] How to identify which process is trying to access network in c++

查看:102
本文介绍了如何识别在c ++中尝试访问网络的进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建类似应用程序的防火墙,目前我可以捕获数据包并能够根据源和目标IP阻止它们。但我想在进程的基础上阻止。所以我需要知道有什么方法可以在进程或程序尝试访问网络时识别

I am trying to make a firewall like application, currently I can capture packets and able to block them on the basis of source and destination IP. But i want to block on the basis of process.So I need to know is there any way to get identify when a process or program is trying to access network

推荐答案

好吧,我自己想出了答案。我找到了这个链接

https://msdn.microsoft.com/en-us/library/windows/desktop/aa365928%28v=vs.85%29.aspx [ ^ ]





https://msdn.microsoft.com/en-us/library/windows/desktop/aa365930(v = vs.85).aspx [ ^ ]
Well I figured the answer myself. I have found this link
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365928%28v=vs.85%29.aspx[^]

and
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365930(v=vs.85).aspx[^]


这篇关于如何识别在c ++中尝试访问网络的进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆