获取完整的运行进程列表 (Visual C++) [英] Get full running process list ( Visual C++ )

查看:35
本文介绍了获取完整的运行进程列表 (Visual C++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用 EnumProcesses 函数来获取正在运行的进程列表.但是,由于我的应用程序在用户空间中运行,因此它无法获取不在用户下运行的进程的句柄,包括系统进程.还有另一种方法可以让我访问这些吗?我只需要进程名称.

解决方案

我终于找到了一个解决方案(这是我最后一次绝望的尝试在这里发帖后的数字).如果其他人只需要系统上运行的进程名称列表(所有进程),这将为您完成.

过程行走

I am currently using the EnumProcesses function to obtain a list of running processes. Since my application runs in user space, however, it is not able to get handles for processes not running under the user, including System processes. Is there another method that will give me access to these? All I need are the process names.

解决方案

I finally found a solution (figures after posting here as my last desperate attempt). If anyone else only needs a list of process names running on the system (all processes), this will do it for you.

Process Walking

这篇关于获取完整的运行进程列表 (Visual C++)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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