"Leonid" <an*******@disc ussions.microso ft.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 "applicatio ns" rather than processes you can use
EnumWindows() to get a list of top-level windows in the system and, if
necessary, GetWindowThread ProcessId() to map a window to a process.
Regards,
Will