###Function###
WinKill

###Description###
Forces a window to close.

###Syntax###
WinKill ( "title" [, "text"] )


###Parameters###
@@ParamTable@@
title
	The title/hWnd/class of the window to close. See <a href="../intro/windowsadvanced.htm">Title special definition</a>.
text
	[optional] The text of the window to close. Default is an empty string. See <a href="../intro/windowsbasic.htm#specialtext">Text special definition</a>.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	1.
Failure:	The function only returns the success value.
@@End@@


###Remarks###
The difference between this function and <a href="WinClose.htm">WinClose()</a> is that <a href="WinKill.htm">WinKill()</a> will forcibly terminate the window if it doesn't close quickly enough.  Consequently, a user might not have time to respond to dialogs prompting the user to save data.  Although <a href="WinKill.htm">WinKill()</a> can work on both minimized and hidden windows, some windows (notably explorer windows) can only be terminated using <a href="WinClose.htm">WinClose()</a>.


###Related###
ProcessClose, WinActivate, WinClose, WinSetState


###Example###
@@IncludeExample@@
