Curent Running Appplications:::::or Windows in the BAr

27/09/2004 - 04:24 por H.A.S | Informe spam
hiii all
anyone can help me to get the list of the curent running application
like the same one in Task MAnager

please help me in that

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Preguntas similare

Leer las respuestas

#1 Pedro Luna Montalvo, MVP
27/09/2004 - 04:43 | Informe spam
Check this code:

using System;
using System.Management;

internal class MyProcessViewer {
public static void Main() {
ManagementClass wmi = new ManagementClass("Win32_Process");


Console.WriteLine("Id\tDescription\tDate/start\tPriority\tThreads");

foreach(ManagementObject o in wmi.GetInstances()) {
Console.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}",
o["ProcessId"],
o["Description"],
o["CreationDate"],
o["Priority"],
o["ThreadCount"]);
}
}
}

More information about WMI Process class can be found at:

http://msdn.microsoft.com/library/d...rocess.asp


Pedro Luna, MVP
Gye, Ecu


"H.A.S" escribió en el mensaje
news:


hiii all
anyone can help me to get the list of the curent running application
like the same one in Task MAnager

please help me in that

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Respuesta Responder a este mensaje
#2 Pedro Luna Montalvo, MVP
27/09/2004 - 04:51 | Informe spam
The link is:

http://msdn.microsoft.com/library/d...rocess.asp


"Pedro Luna Montalvo, MVP" escribió en
el mensaje news:uX%
Check this code:

using System;
using System.Management;

internal class MyProcessViewer {
public static void Main() {
ManagementClass wmi = new ManagementClass("Win32_Process");


Console.WriteLine("Id\tDescription\tDate/start\tPriority\tThreads");

foreach(ManagementObject o in wmi.GetInstances()) {
Console.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}",
o["ProcessId"],
o["Description"],
o["CreationDate"],
o["Priority"],
o["ThreadCount"]);
}
}
}

More information about WMI Process class can be found at:




http://msdn.microsoft.com/library/d...rocess.asp


Pedro Luna, MVP
Gye, Ecu


"H.A.S" escribió en el mensaje
news:
>
>
> hiii all
> anyone can help me to get the list of the curent running application
> like the same one in Task MAnager
>
> please help me in that
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!


email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida