I am able to kill running processes which show up in the task manager but there are some games like KnightOnline and Metin2 that don't show up in task manager and so I can't kill them. I've been searcing for a solution but couldn't find. This is an internet cafe software and I just want to close all programs and games when a customer leaves so that the new customer will have a fresh desktop.

As windows automaticly closes everything, I thought of ending the session and reloging but that doesn't seem to be easy and not the best way.

thanks but it doesn't help me with hidden processes
–
teknologApr 7 '11 at 20:51

Are you sure that your processes is really hidden? Is it true that processes isnt visible even if you press "Show processes from all users"? It also may be that KnightOnline and Metin2 have process names different from their program names
–
Anton SemenovApr 8 '11 at 7:11

When you don't know name of process, but you know name of executable that is run on your computer ( C:...\Metin.exe) then you can iterate through all processes and search for process that in list of loaded modules (Modules property) has module with name of your executable (FileName property in ProcessModule class) . Maybe it helps.

my question was "Kill process that doesn't show up in task manager" What's wrong with it? It already explains
–
teknologApr 7 '11 at 19:46

"Hi, I am able to kill running processes which show up in the task manager but there are some games like KnightOnline and Metin2 that don't show up in task manager and so I can't kill them" - doeas it tell us that you want to kill it by code? It only describe that you have problems with task manager.
–
Korin - Marek K.Apr 7 '11 at 19:47

okay sorry, as I mentioned that it was an internet cafe software and put the c#4 tag below, I thought you could undestand that it was a programming question
–
teknologApr 7 '11 at 19:49

If you can't find your application in the Applications tab then in the Task Manager switch to the second tab "Processes" find your desired application process then press "End Process", normally all processes have names similar to their applications, see the image below: