New SDF stuff – ToolHelp namespace

I’m back from the Embedded DevCon and I’m working on a new test project idea (true real-time managed code – more on that later). In doing so, I’ve added some more to the SDF source.  Using Alex Yakhnin’s MSDN Article as a base, I’ve added a ToolHelp namespace with a ProcessEntry class to the SDF.  You can actually create a real Process Viewer (not the crap “running programs” in the PPC) with essentially 2 lines of code beyond the UI work:


To show the processes in a ListBox:
myListBox.DataSource = OpenNetCF.ToolHelp.ProcessEntry.GetProcesses();


To kill a selected process in the list:
((ProcessEntry)myListBox.SelectedItem).Kill();


Once again, I love managed code!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s