4

A user is seeing different behaviour between my C# program that uses System.Diagnostics.Process.Kill and the Windows 7 command-line program "taskkill /f". Possibly the program is dying more cleanly with taskkill

Does "taskkill /f" attempt to issue a WM_CLOSE, SC_CLOSE or WM_QUIT message before resorting to TerminateProcess? Are there any other pertinent differences?

Neil
  • 3,899
  • 1
  • 29
  • 25
  • What different behavior? – Ash Burlaczenko Sep 09 '13 at 15:32
  • Hi @ash-burlaczenko. If you want the gory details: we have an Excel addin talking to an external process. If we restart the process with "taskkill /f" the addin switches to the new process. Otherwise the addin doesn't update its connection. The addin and process are both provided by a third party. Thanks for the interest – Neil Sep 09 '13 at 15:42

0 Answers0