List Of running processes

  • Thread starter Thread starter Leonid
  • Start date Start date
L

Leonid

Hello,

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

Regards

Leonid
 
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
 
Back
Top