Terminate Application by Knowing its .exe name
Posted on 2000-04-21
Using VB 6.0, how can i terminate an application knowing its exe name? I do have code that searches the running applications and returns true if the application is running. As the caption text in the running application changes frequently, I would like to stay away from determining its handle based on its caption (ie. FindWindow API) Function. Is there an API call available that I can use to just pass the exe name to it such as terminate "WINWORD.EXE"?? IF so which one and how? I am very new to using API calls, so any and all help is very much appreciated.