ToolHelpCE and CETaskManager - Working with processes in Windows CE using .NET Compact Framework

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

Incase of any queries, do get in touch with me at gaurav-at-wintoolzone-dot-com.

This article is part of the GWB Archives. Original Author: Gaurav Khanna

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.