c ++查看进程和连接 [英] c++ view processes and connections

查看:85
本文介绍了c ++查看进程和连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我已经学习c ++一段时间了.

现在是时候使用其他人的课程,并在编写对我有用的程序的同时学习!

我的想法是制作一个程序,以检查正在运行的进程(例如taskmanger),并查看连接到我的计算机的连接并将它们与它们的程序或网站关联.

适用于Windows Vista Btw.

因此,我要寻找的是一个包含这些功能的类,并提供一些有关如何使用它们的指南.

Hello,

I have been learning c++ for a while now.

Now it''s time to use other people''s classes, and learn while making a program that could be useful to me!

My idea is to make a program that checks which processes are running, like taskmanger, and see the connections that are connected to my computer and associate them with their programs or webbsite.

Its for windows vista btw.

So what I''m looking for is a class that contains these functions and a little guide how to use them.

推荐答案

在Windows中,您可以获得运行列表.使用API​​-EnumProcessesCreateToolhelp32Snapshot进行处理.
您可以搜索是否有使用这些API的任何可用类.
否则,您可以编写自己的内容.

这是一篇很好的文章,展示了这一点-
流程查看器 [
In Windows you can get a list of running processes using the APIs - EnumProcesses and CreateToolhelp32Snapshot.

You can search if there are any classes available that use these APIs.
Otherwise you could write your own.

Here is an excellent article that demonstrates this -
Process viewer[^]


这篇关于c ++查看进程和连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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