Destroys the specified window
#include <WinAPISysWin.au3>
_WinAPI_DestroyWindow ( $hWnd )
| $hWnd | Handle to the window to be destroyed |
| Success: | True |
| Failure: | False, call _WinAPI_GetLastError() to get extended error information |
You cannot use _WinAPI_DestroyWindow() to destroy a window created by a different thread
Search DestroyWindow in MSDN Library.