List Of running processes

L

Leonid

Hello,

How to get the list of running processes in VC++ (Similar
to Task Manager->Processes window)

Regards

Leonid
 
W

William DePalo [MVP VC++]

Leonid said:
How to get the list of running processes in VC++ (Similar
to Task Manager->Processes window)

Check the docs for Process32First() and Process32Next() which enumerate the
processes running at the time a "snapshot" of the system was taken.

If you want to enumerate "applications" rather than processes you can use
EnumWindows() to get a list of top-level windows in the system and, if
necessary, GetWindowThreadProcessId() to map a window to a process.

Regards,
Will
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top