Click here to Skip to main content
15,881,871 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,
I'm a novice to programming. Am happy to be here. This is my first post in a forum and happy to be here.
My question is regarding how can i get a list of all applications in Task Manager in Applications Tab.
I used System.Diagonistics.Process class and used the condition p.mainWindowTitle.Length >1 to get main window title of all processes.
But certain processes may have multiple windows in my case. You can see it by opening calc in windows and going to Help -> Help topics
Now when i use the above class, i couldn't get the handle of this help window.. But it'll be present in task manager list. Both calculator and calculator help are from calc.exe process...

Is there anyway to get all windows associated with a single process..??
Posted

1 solution

Have a read here:

http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/60affc28-364a-4a8a-8f03-ec976918c2ca[^]

They appear to be attempting to do the same thing, there are some ideas you could try.
 
Share this answer
 
Comments
Suryakant Turing 10-Jan-16 9:10am    
Hello Pheonyx, can u please tell me that how to do the same program in c++,because it is very complicated in c++.
Pheonyx 11-Jan-16 5:02am    
I'm afraid not, I don't know c++ myself.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900