EndTask (user32)
Last changed: -41.239.209.206

.
Summary
EndTask - force a window to close

C# Signature:

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

VB Signature:

  <DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
  Private Shared Function EndTask(ByVal hWnd As IntPtr) As Integer
  End Function

  Declare Function EndTask Lib "user32.dll" (ByVal hWnd As IntPtr) As Integer

Alternative Managed API:

Notes:

Tips & Tricks:

Sample Code:

Documentation
EndTask on MSDN