PDA

Click to See Complete Forum and Search --> : Windows Task List


mystiq
Nov 25th, 1999, 12:24 AM
Ok, this is my second try, hehe. I want to get the processes running that show up on the Windows Taskbar. I have a function that gets ALL processes and converts them into window names, and another that just lists the exes that windows runs (not background hidden things like kernel calls) and has the process ID, but I need only get the programs that the Windows user ran.

------------------
-Mystiq

razzaj
Nov 27th, 1999, 06:34 PM
u just have to run a check on the tasklist when windows start and for example each 1 minute make ur program refresh the list and compare with the initial one ... i hope this helps ...

- regards -
- razzaj -

mystiq
Nov 28th, 1999, 01:26 AM
I have that done now, but the next problem is i cant "AppActivate" an application if it is minimized :( How is that done?

------------------
-Mystiq

Clunietp
Nov 28th, 1999, 02:06 AM
If you have the handle of the window, you get get the window position using the GetWindowPlacement API and examine one element of the WINDOWPLACEMENT type (don't remember which one, sorry), modify that element, and call SetWindowPlacement API to restore or maximize that window. If it does not have focus at that time, then you can call appactivate or use the setfocus API. Sorry, I don't have the code right with me, but if you're somewhat handy with the API this should get you started.

HTH

Tom

[This message has been edited by Clunietp (edited 11-28-1999).]