Click here to Skip to main content
15,910,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i have requirement to display all the list of applications are open in os, as like task manager Application Tab is listing all application. i tried with the system.Diagnostic to get the all the current processes opened but when i opened multiple ms word windows i am getting only one process as of ms word, can any one help me to over come this problem.
Posted

1 solution

C#
Process[] p = Process.GetProcesses();

foreach(Process p1 in p){
Console.WriteLine("Process: {0} ID: {1}", p1.ProcessName, p1.Id);
}
 
Share this answer
 
Comments
brajunaresh 2-May-13 3:02am    
Hi Perumal,
thanks u, i did same thing to get the processes but if i opened more then one word or IE browsers, in the process list i am getting only one process. i need how to get the reamaing windows information.
KM Perumal 2-May-13 3:06am    
What Purpose are you trying ???
brajunaresh 2-May-13 5:10am    
I have requirement to track each and every processing application window information in task bar, Mean window name/title and start time and exit time.

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