General discussion

Locked

Remove App from TaskManager with VB6

By setivi ·
Does anyone know how to terminate or remove an application with "running" status from Windows' TaskManager using Visual Basic 6 code.
I am shelling i.e. "Shell" other applications from Visual program and I need to find a way to remove them from the task manager when I am done with them.
Any ideas?

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by RRV In reply to Remove App from TaskManag ...

If you shell - you do not have the process id. So you have to use findwindow api with the caption bar string and get the window hwnd. Findwindow will give you the hwnd and with that you can do a killprocess api or use a sendkeys to talk to the program and close. Instead of shell use CreateProcess APi with which you have more control.

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums