Active application info?

I want to know how I can get (any) info about the active application?
like the caption of the active application or pid.
Last edited on
getpid()? getppid()? getsid()? argv?

Resource info? http://www.opengroup.org/onlinepubs/000095399/basedefs/sys/resource.h.html
thx for the answer.
Topic archived. No new replies allowed.