For those who are unaware of what ps command of linux does
PS peports the process status.
ps [-a] [-A] [-c] [-d] [-e] [-f] [-j] [-l] [-L] [-P] [-y] [ -g grplist ] [ -n namelist ] [-o format ] [ -p proclist ] [ -s sidlist ] [ -t term] [ -u uidlist ] [ -U uidlist ] [ -G gidlist ]
-e List information about every process now running.
-f Generate a full listing.
This can be done in C++ using the API EnumProcess. Here is the MSDN sample Enumerating All Processes