in reply to Re: writing to logfile in a loop
in thread writing to logfile in a loop

Windows does not use UNIX signals.

This is a piece of Windows software that sends various kinds of close commands to windows programs. It can send specifics including WM_CLOSE and SC_CLOSE. I believe that TaskManager uses User32.dll->EndTask().

Check this out, it can kill anything:

Advanced Process Termination