EndTask (user32)
Last changed: -41.239.209.206

.
Summary
EndTask - force a window to close

C# Signature:

  [DllImport("user32.dll", SetLastError = true)]
  static extern bool EndTask(IntPtr hWnd, bool fShutDown, bool fForce);

VB Signature:

Alternative Managed API:

Notes:

Tips & Tricks:

Sample Code:

Documentation
EndTask on MSDN