SIGN UP MEMBER LOGIN:    
ARTICLE

ProTracker v1.0 : A Process Tracking Utility

Posted by Mahesh Chand Articles | Current Affairs February 14, 2001
ProTracker is a process tracking utility similar to Windows NT Task Manager's Processes tab window.
Reader Level:
Download Files:
 

ProTracker was a utility I wrote in C++. Here is C# version of this utility.

This program is similar to Window NT Task Manager. It displays current running processes with their process id, memory uses. The Kill Process let you kill the process. This is a pre version of this utility.

I have used the Process class to do so. Process.GetProcesses() return all the process in an array with the corresponding information such as memory used, thread priority, process ID etc.

procList = Process.GetProcesses();
for ( int i=0; i<20; i++)
{
iPhysical = procList[i].WorkingSet / 1024;
iVirtual= procList[i].VirtualMemorySize / 1024;
listView1.InsertItem(listView1.ListItems.Count, procList[i].ProcessName,
0,
new string[]{procList[i].Id.ToString(), procList[i].StartTime.ToString(),
procList[i].BasePriority.ToString(), iPhysical.ToString(),
iVirtual.ToString() } );
}

The Kill method
is used to kill the process.

if ( procList[i].Id == iProcID )
{
procList[i].Kill();
}

Login to add your contents and source code to this article
share this article :
post comment
 

Hi, the source code you've posted is missing the project file, it only has the cs file Please post the full source code Thank you

Posted by Ken Jul 03, 2007
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Nevron Gauge for SharePoint
Become a Sponsor