Archive: KillProcDll addition please


KillProcDll addition please
Could someone add an ExitProc option to the KillProcDll plugin?
Rather than using terminate process use exitprocess.
If I understand it correctly using exit process will allow the exe to prompt you to for example to save changes before it closes rather than just terminating.


Use the Find, Close or Terminate plugin.

Stu


I'm pretty sure FCT plugin won't work.
I don't have the class or title for the window, only the exe name.
Also not sure if it will work if there is no window, i.e. running in systray?


The way to find out is to write a program to loop through all the windows and print the class names (use EnumWindows).

Stu


I guess computechx had im mind ExitProcess() in the remote thread. Good idea, but may not work on Vista.


I disagree. You're better off with TerminateProcess than injecting an ExitProcess call. You can never know in which state you'll catch the other process. You can drive into a deadlock. Even more, if FCT failed killing the process with messaging, you can already assume it's deadlocked.

As for Vista, it should only fail if you're trying to kill a protected process which is a bad idea anyway.

Afrow, that program is called Spy++ and it comes with Visual Studio. No need for a rewrite. There are also others available:

http://www.windows-spy.com/
http://www.codeproject.com/dialog/windowfinder.asp