"Leonid" <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
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