PDA

View Full Version : How to get name of the currently running applications ?




neha1
Dec 17, 2008, 11:45 PM
hi all

working on Qt4.4.2 on my mac intel machine. i have to develop an application to get the names of the applications that are currently running on my system.

Is there any API in carbon to get the names of the currently running applications or any other alternative.


Thanks & Regards

Neha:)



kainjow
Dec 18, 2008, 12:47 PM
GetNextProcess() and CopyProcessName() should do it.

Are you sure Qt doesn't have an API for this?

ChrisA
Dec 18, 2008, 02:10 PM
....to get the names of the applications that are currently running on my system.

You can run the "ps" command in a shell and capture it's output. This is portable across all *nix systems.

neha1
Dec 19, 2008, 01:13 AM
Thanks for all the replies....