How do I get a list of all running programs (WIN) tasks?

Just starting out? Need help? Post your questions and find answers here.
BigJack
User
User
Posts: 76
Joined: Tue May 16, 2006 6:46 am
Location: Germany
Contact:

How do I get a list of all running programs (WIN) tasks?

Post by BigJack »

Hi all,
I am very much new to PureBasic, and I was scanning through this forum to find a solution to my problem but didn't find anything appropriate.
How can I get the names (Window ID) of all running programs into a list?
I am currently using PB 4.0 on a Windows XP system and there doesn't seem to be a command or function that does the job.
Greetings Mike
Greetings to all the folks back home in the States...
PB4.2 Windows XP SP3
jb
User
User
Posts: 37
Joined: Wed Jul 14, 2004 11:58 pm
Location: United States

Post by jb »

You will need to use the EnumProcesses Windows API function.

Here is a link to MSDN:
http://msdn.microsoft.com/library/defau ... cesses.asp

There are some samples on purearea.net
http://www.purearea.net/
-jb
Post Reply