Link to home
Start Free TrialLog in
Avatar of AngrMgmtDdntWork
AngrMgmtDdntWork

asked on

Task Manager control

Hello all, is there any way that I can communicate with the windows (I have 2000) task manager in C\C++? I wanted to be able to create a program that will check to see if a process is running, and then be able to start or end it with using the actual task manager. Is this possible? I have never seen it done before. Please try to help. Thanks in advance
Avatar of burtdav
burtdav

I don't think communicating with taskman is the best way to do deal with processes - the Windows API itself would be how to do that. Why do you want to use taskman?
Avatar of AngrMgmtDdntWork

ASKER

Hmm, I didnt even think of that... How would I go about controlling tasks with the Windows API?
ASKER CERTIFIED SOLUTION
Avatar of burtdav
burtdav

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you much, I'm looking into it now. Im gonna give you the points now, even if it doesnt work you got me on the right track. I will post my findings for anyone interested. Thanks again
hmm, looking through all the tools i found that Pview.exe (Process Viewer) does what I want. But my problem is I dont want to use the interface. Anybody ever used it or know of a site where i can find the tags to do what I want. Or if its possible to call it with tags at all. I was thinking something along the lines of

System("c:/VC++directory/tools/pview.exe -KillApp apptobekilled")

or something like that, but I dont know if it will work at all. Thanks for any help,
NT/2000 remote process viewer/killer: http://is-it-true.org/nt/atips/atips284.shtml
This is a similar question, with a C++ code proposed solution: https://www.experts-exchange.com/questions/20353998/kill-process-tree.html
And this: https://www.experts-exchange.com/questions/20366820/Kill-a-process-when-it-doesn't-work-with-the-task-manager.html
...says:
Try "PsKill" (free) - it should be able to accomplish that.
http://www.sysinternals.com/ntw2k/freeware/pskill.shtml 
...and:
In Windows resource kit you'll find utilities such as
tlist.exe - to list current processes & PIDs
kill.exe  - to kill a process - works even if Task manager cannot kill the process

I'm still interested in how you finally solve your problem.

Cheers
wow, your full of helpfullness burtday, thank you very much, i'll keep you posted