Using PEB to extract process information on windows

Found some great reading on PEB @
http://stackoverflow.com/a/16142791/127257

I've got the code to work, but I need to go through it and understand it
in order to make sure I know what it is doing.