General discussion

  • Creator
  • #2282421

    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?

All Comments

  • Author
    • #2730429

      Reply To: Remove App from TaskManager with VB6

      by rrv ·

      In reply to Remove App from TaskManager with VB6

      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.

Viewing 0 reply threads