Is there a way to list current processes using Qt on Windows?

Can I find out what processes are running with Qt 4? I am looking for a way to wait until the application is closed by the user to complete the operation.

+3
source share
2 answers

I also don't know the Qt solution. But to do this is not so difficult using functions CreateToolhelp32Snapshot(), Process32FirstW()and Process32NextW(). To do this, simply find the MSDN. There is also a (too complicated) IMO example on

Take snapshots and view processes

+3
source

This is actually not a Qt4 solution, but you can run WMIC in QProcess and evaluate the result.

- :

wmic process get name /every:5
+2

Source: https://habr.com/ru/post/1707836/


All Articles