Page 1 of 1

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

Posted: Tue May 16, 2006 6:58 am
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

Posted: Tue May 16, 2006 10:31 am
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/