Inside and Out...

An attempt to understand technology better...

  Home  |   Contact  |   Syndication    |   Login
  160 Posts | 0 Stories | 12 Comments | 181 Trackbacks

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.

Twitter





Tag Cloud


Archives

Post Categories

Image Galleries

Links

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 06, 2005 11:08 PM

Feedback

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework 1/7/2005 10:56 AM Rupreet
Nice work Gaurav :)

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework 1/11/2005 6:13 AM Daniel Moth
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)... :)

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework 1/11/2005 9:17 AM Gaurav Khanna
Hi Daniel,

That's not a typo - I am referring to the .NET CF build which accompanies VS.NET 2003 - which is v1.1.

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

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

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

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework 4/15/2005 9:39 PM Elliot
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?

# re: ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework 7/10/2006 8:44 AM Tuan Nguyen
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?

Comments have been closed on this topic.