Sunday, August 2, 2009

Find list of running windows processes with C++?

I am trying to figure out a way to list the application filename, title, and process id of each running process on windows xp. i have tried multiple sites, such as http://www.codeproject.com/KB/threads/ge... but these aren't really what I'm looking for. Is there anyway this can be done a little easier?

Find list of running windows processes with C++?
Are you trying to write your own software for this or have something like a command line tool to list tasks?





At the command line, you can run


tasklist





If you need help with Windows API calls for your own software, put that in your question.





** Added **


Here are some links from Microsoft:





Process and Thread functions


http://msdn2.microsoft.com/en-us/library...





EnumProcesses Function


http://msdn2.microsoft.com/en-us/library...





QueryFullProcessImageName





Process32First Retrieves information about the first process encountered in a system snapshot.


Process32Next Retrieves information about the next process recorded in a system snapshot.





Obtaining Additional Process Information


http://msdn2.microsoft.com/en-us/library...





Process Enumeration


http://msdn2.microsoft.com/en-us/library...


No comments:

Post a Comment