Geeks With Blogs

News
WinToolZone - Spelunking Microsoft Technologies
I work as a developer on the Common Language Runtime (CLR) team, specifically in the areas of exception handling and CLR hosting.
Disclaimer

The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Inside and Out... An attempt to understand technology better...
ToolHelpCE is a Windows CE class library that allows you to enumerate the process list of a Windows CE device using managed code. This is the result of a little over 24 hours of my development time and allows you to overcome the limitation of the .NET Compact Framework which doesn't contain System.Diagnostics namespace's Process class.

Enumerating processes is as easy as writing the statements below:

ProcessCollection refProcColl = Process.CEProcessList;
if (refProcColl == null)
	// unable to get the process list...
else
	{
		foreach(Process refProcess in refProcColl)
		{
			// work with the properties and methods to get the processs details
		}
	}


It allows you to get process details like process ID, parent process ID, Module ID, process priority, process termination and lots more.

ToolHelpCE works with .NET CF 1.1. To exemplify how you can leverage its capacbilities, I wrote the CETaskManager - a basic but functional equivalent of the Windows NT Task Manager that allows you to list processes, view process details and terminate them. And all this is done using ToolHelpCE class library. Both ToolHelpCE and CETaskManager, which comes with VS.NET 2003 source code, can be downloaded from http://www.wintoolzone.com/showpage.aspx?url=dotnet.aspx

Incase of any queries, do get in touch with me at gaurav-at-wintoolzone-dot-com.
Posted on Thursday, January 6, 2005 11:08 PM VS.NET 2002/2003 , .NET Compact Framework | Back to top


Comments on this post: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework
Requesting Gravatar...
Nice work Gaurav :)
Left by Rupreet on Jan 07, 2005 10:56 AM

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework
Requesting Gravatar...
Hey Gaurav.. just noticed you refer to ".NET CF 1.1"... I guess that is a typo as there is only CF 1.0 (with 3 service packs) and CF 2.0 (part of Whidbey)... :)
Left by Daniel Moth on Jan 11, 2005 6:13 AM

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework
Requesting Gravatar...
Hi Daniel,

That's not a typo - I am referring to the .NET CF build which accompanies VS.NET 2003 - which is v1.1.
Left by Gaurav Khanna on Jan 11, 2005 9:17 AM

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework
Requesting Gravatar...
As per my comments that is CF 1.0 :-)
You are right though that the desktop version is 1.1
Left by Daniel Moth on Jan 11, 2005 3:27 PM

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework
Requesting Gravatar...
You say it comes with source code? I don't find any.
Left by Lak on Feb 18, 2005 11:22 PM

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework
Requesting Gravatar...
How do you stop a process? I have tried the kill method, but it fails!
Left by Andy Smith on Apr 14, 2005 9:07 PM

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework
Requesting Gravatar...
I maybe missing something but is there a way of working out how much memory each process is using?

If not does anyone know of any programs / source code that will let me do this?
Left by Elliot on Apr 15, 2005 9:39 PM

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework
Requesting Gravatar...
ToolHelpCE and CETaskManager do not work with WM 5.0 (or at least it works but not stable, for example when you launch SMS Text Messages first, then run CE Task Manager, it may not work properly). How can we upgrade the library so that it can work on WM 5.0?
Left by Tuan Nguyen on Jul 10, 2006 8:44 AM

Your comment:
 (will show your gravatar)


Copyright © Gaurav Khanna | Powered by: GeeksWithBlogs.net