In a win32 console program, is there a way to get the current open programs displayed (Not to a message box, but to the console) ?
I am making a little log program that will log information like open connections to a log file (report.log) by using a batch file. For instance there is netstat >>report.log in the batch file. I want to make a program that displays the programs that are open (You know, like when you press control + alt +del it shows the open programs?) so I can put that in a log.
I guess what im looking for is something similar to Unix's command PS,
but I will settle for something easier like just displayin the program names open
Functions or code snippits appreciated. Thanks!