Link to home
Start Free TrialLog in
Avatar of ellis-
ellis-

asked on

Kill process by Title name (not process name).

Hi, i'm making a program that terminates other processes by there window title. I'm having dificulties getting a process list and then getting the titles of them all.
Note: I dont need the process name, cuz its not certain that it will always be the same.

The general idea of the program is, it looks through the procsess list and then checks a MySQL database to se if theres any rows there teling the program to kill anyone of thees processes. The rows contain the title name, cuz thay usaly never change when it comes to games and sutch.
I got the SQL part done and its working really good together with ODBC, but i havent figured the process thing out yet, and im having a hard time doing it.

If any one got a better idea on how to kill a special program/process, be free to tell me.
ASKER CERTIFIED SOLUTION
Avatar of dsabo
dsabo
Flag of Venezuela, Bolivarian Republic of image

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
Avatar of ellis-
ellis-

ASKER

Great!!
changed p.CloseMainWindow(); to p.Kill(); so it really closed it without warning.

Else, it works like a charm.
thx
//ellis