Check what programs are running?

How would you check what non-system based applications are running on a computer at any given moment?
For example what would I need to get a list of applications running?
Im on a Mac (Snow Leopard)
Thanks
This question is not exactly general to C++. Getting a process information (including a list of processes), usually requires calling a function from the target operating system's API.

For example, in Linux, there are libraries that can help in reading /proc (or if you are hardcore, you'd write your own kernel module to do this). On the other hand, in Windows, you would instead use the PSAPI.dll - http://msdn.microsoft.com/en-us/library/ms682623%28v=vs.85%29.aspx
Last edited on
@vince: do you have another link? it's broken...
@chipp:

I fixed the link on the post above. The parenthesis surrounding the link broke it.
Topic archived. No new replies allowed.