Enumerating All Processes has an example of enumerating the current processes in the system.
I previously had a bit more information here but it was all close enough to being outdated that I removed all of it.
Hosted by WinHost.com.