[DllImport("user32.dll", SetLastError = true)]
static extern void EndTask(IntPtr hWnd);
<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