<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Get a List of Running Processes in C#</title>
	<atom:link href="http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/</link>
	<description>Computer Help from your Friendly How-To Geek</description>
	<lastBuildDate>Tue, 24 Nov 2009 08:50:03 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: silverback12</title>
		<link>http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/comment-page-1/#comment-77604</link>
		<dc:creator>silverback12</dc:creator>
		<pubDate>Thu, 08 Oct 2009 15:32:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/#comment-77604</guid>
		<description>it outputs the result I wanted. but at the end it throws the error

explorer: 2656: Tuesday, October 06, 2009 1:48:15 PM
svchost: 960: Tuesday, October 06, 2009 1:45:15 PM
ConsoleApplication1.vshost: 5676: Thursday, October 08, 2009 10:16:22 AM
smax4pnp: 2916: Tuesday, October 06, 2009 1:48:29 PM
RunRM: 3860: Tuesday, October 06, 2009 1:48:38 PM
Error: System.ComponentModel.Win32Exception: Access is denied
   at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 acces
s, Boolean throwIfExited)
   at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfE
xited)
   at System.Diagnostics.Process.GetProcessTimes()
   at System.Diagnostics.Process.get_StartTime()
   at ConsoleApplication1.Program.Main(String[] args) in c:\c#\ConsoleApplicatio
n1\ConsoleApplication1\Program.cs:line 20</description>
		<content:encoded><![CDATA[<p>it outputs the result I wanted. but at the end it throws the error</p>
<p>explorer: 2656: Tuesday, October 06, 2009 1:48:15 PM<br />
svchost: 960: Tuesday, October 06, 2009 1:45:15 PM<br />
ConsoleApplication1.vshost: 5676: Thursday, October 08, 2009 10:16:22 AM<br />
smax4pnp: 2916: Tuesday, October 06, 2009 1:48:29 PM<br />
RunRM: 3860: Tuesday, October 06, 2009 1:48:38 PM<br />
Error: System.ComponentModel.Win32Exception: Access is denied<br />
   at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 acces<br />
s, Boolean throwIfExited)<br />
   at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfE<br />
xited)<br />
   at System.Diagnostics.Process.GetProcessTimes()<br />
   at System.Diagnostics.Process.get_StartTime()<br />
   at ConsoleApplication1.Program.Main(String[] args) in c:\c#\ConsoleApplicatio<br />
n1\ConsoleApplication1\Program.cs:line 20</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CodeMunter</title>
		<link>http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/comment-page-1/#comment-68143</link>
		<dc:creator>CodeMunter</dc:creator>
		<pubDate>Wed, 04 Mar 2009 20:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/#comment-68143</guid>
		<description>Ok, so we have a list of processes, and I&#039;m particularly interested in the WINWORD one... So how can I turn that into my private Microsoft.Office.Interop.Word.ApplicationClass _Word object so that I can pull its levers n shiz?</description>
		<content:encoded><![CDATA[<p>Ok, so we have a list of processes, and I&#8217;m particularly interested in the WINWORD one&#8230; So how can I turn that into my private Microsoft.Office.Interop.Word.ApplicationClass _Word object so that I can pull its levers n shiz?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChokoMd</title>
		<link>http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/comment-page-1/#comment-49593</link>
		<dc:creator>ChokoMd</dc:creator>
		<pubDate>Sun, 11 May 2008 12:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/#comment-49593</guid>
		<description>*My bad  - Process[] processlist = Process.GetProcesses();</description>
		<content:encoded><![CDATA[<p>*My bad  &#8211; Process[] processlist = Process.GetProcesses();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChokoMd</title>
		<link>http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/comment-page-1/#comment-49592</link>
		<dc:creator>ChokoMd</dc:creator>
		<pubDate>Sun, 11 May 2008 12:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/#comment-49592</guid>
		<description>Process.GetCurrentProcess();</description>
		<content:encoded><![CDATA[<p>Process.GetCurrentProcess();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dzar</title>
		<link>http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/comment-page-1/#comment-48457</link>
		<dc:creator>dzar</dc:creator>
		<pubDate>Thu, 01 May 2008 12:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/#comment-48457</guid>
		<description>how we can selection to choice only proceses running?</description>
		<content:encoded><![CDATA[<p>how we can selection to choice only proceses running?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaaz</title>
		<link>http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/comment-page-1/#comment-47188</link>
		<dc:creator>Shaaz</dc:creator>
		<pubDate>Sat, 26 Apr 2008 13:25:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/#comment-47188</guid>
		<description>This is great.  But I do have one question.

How would I get an event when a process is started or ended?

Basicly, I am trying to make my own taskbar in C#.</description>
		<content:encoded><![CDATA[<p>This is great.  But I do have one question.</p>
<p>How would I get an event when a process is started or ended?</p>
<p>Basicly, I am trying to make my own taskbar in C#.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asem</title>
		<link>http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/comment-page-1/#comment-36817</link>
		<dc:creator>Asem</dc:creator>
		<pubDate>Thu, 07 Feb 2008 12:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/#comment-36817</guid>
		<description>How can I get these running process and add to a collection using LINQ ?

Say, u have a class SystemData(double,string,double,double). You can add the Process information using Linq as :

       public systemdata(): base()
        {
            //Add data here 
            string P_NAME; //process name
            double P_ID; //process ID
            double P_MEM; //memory Usages
            double X_axis=1;

            var procname = from n in Process.GetProcesses()
                           select n;
            foreach (var Pname in procname)
            {
                P_ID = Pname.Id;
                P_MEM = Pname.WorkingSet64 / 1024;
                P_NAME = Pname.ProcessName;
                Add(new SystemData(P_ID, P_NAME, P_MEM,X_axis));
                X_axis ++;
            }
        }
For complete sample, You can mail me at : iamibohal@yahoo.com</description>
		<content:encoded><![CDATA[<p>How can I get these running process and add to a collection using LINQ ?</p>
<p>Say, u have a class SystemData(double,string,double,double). You can add the Process information using Linq as :</p>
<p>       public systemdata(): base()<br />
        {<br />
            //Add data here<br />
            string P_NAME; //process name<br />
            double P_ID; //process ID<br />
            double P_MEM; //memory Usages<br />
            double X_axis=1;</p>
<p>            var procname = from n in Process.GetProcesses()<br />
                           select n;<br />
            foreach (var Pname in procname)<br />
            {<br />
                P_ID = Pname.Id;<br />
                P_MEM = Pname.WorkingSet64 / 1024;<br />
                P_NAME = Pname.ProcessName;<br />
                Add(new SystemData(P_ID, P_NAME, P_MEM,X_axis));<br />
                X_axis ++;<br />
            }<br />
        }<br />
For complete sample, You can mail me at : <a href="mailto:iamibohal@yahoo.com">iamibohal@yahoo.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asem</title>
		<link>http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/comment-page-1/#comment-36670</link>
		<dc:creator>Asem</dc:creator>
		<pubDate>Wed, 06 Feb 2008 11:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/#comment-36670</guid>
		<description>Its really a great job..I keep on wasting 3 Hrs to search what you guys are done here..
Thanks a lot..

Asem Ibohal</description>
		<content:encoded><![CDATA[<p>Its really a great job..I keep on wasting 3 Hrs to search what you guys are done here..<br />
Thanks a lot..</p>
<p>Asem Ibohal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/comment-page-1/#comment-35951</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Fri, 01 Feb 2008 23:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/#comment-35951</guid>
		<description>is there any way to spit out the command line arguments that were used to fire the given process?
likie for explorer.exe it would show&quot;C:\WINDOWS\Explorer.EXE&quot; and mmc.exe would show &quot; C:\WINDOWS\system32\perfmon.msc /s&quot;

I can see these values using SysInternals process explorer so i&#039;m hoping I can get them using .Net somehow. CommanArgument doesn&#039;t seem to be an available property on the Process class.</description>
		<content:encoded><![CDATA[<p>is there any way to spit out the command line arguments that were used to fire the given process?<br />
likie for explorer.exe it would show&#8221;C:\WINDOWS\Explorer.EXE&#8221; and mmc.exe would show &#8221; C:\WINDOWS\system32\perfmon.msc /s&#8221;</p>
<p>I can see these values using SysInternals process explorer so i&#8217;m hoping I can get them using .Net somehow. CommanArgument doesn&#8217;t seem to be an available property on the Process class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssp</title>
		<link>http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/comment-page-1/#comment-23934</link>
		<dc:creator>ssp</dc:creator>
		<pubDate>Thu, 04 Oct 2007 07:33:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.howtogeek.com/howto/programming/get-a-list-of-running-processes-in-c/#comment-23934</guid>
		<description>Hi, Is there a way to know how much CPU each thread for a process(say, w3wp.exe) uses?? In other words, w3wp process creates N no. of threads and I want to know exactly how much CPU each thread is using for this particular process.</description>
		<content:encoded><![CDATA[<p>Hi, Is there a way to know how much CPU each thread for a process(say, w3wp.exe) uses?? In other words, w3wp process creates N no. of threads and I want to know exactly how much CPU each thread is using for this particular process.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
