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:
Once again, I love managed code!