有没有办法在 Windows 上使用 Qt 列出当前进程? [英] Is there a way to list current processes using Qt on windows?
本文介绍了有没有办法在 Windows 上使用 Qt 列出当前进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以知道哪些进程正在使用 Qt 4 运行?我正在寻找一种方法来等待用户关闭应用程序进行操作.
Is it possible to know which processes are running using Qt 4? I'm looking for a way to wait until an application is closed by the user to make an operation.
推荐答案
我也不知道 Qt 解决方案.但是使用CreateToolhelp32Snapshot()
、Process32FirstW()
和Process32NextW()
函数来做到这一点并不难.只需搜索 MSDN 即可.
I don't know a Qt solution either. But doing it is not that hard using theCreateToolhelp32Snapshot()
, Process32FirstW()
and Process32NextW()
functions. Just search the MSDN for this. There is also a (IMO too complex) example on
这篇关于有没有办法在 Windows 上使用 Qt 列出当前进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文