I've looked everywhere but I couldn't find the answer. I downloaded the code for enumerating all active processes on the system(http://msdn.microsoft.com/en-us/library/ms682629(VS.85).aspx). I've read that you should link psapi.lib (libpsapi.lib in dev-c) to do that, but I don't know how...
If you look in codeguru.com after a program called "Taskbar Modfication to Kill Windows NT/2000 Processes" you should be able to extract the code you need. I have used it myself in the past to do a program that automatically delete games when they showed up in the list ... teenage son, what can i say