Is there another way to kill a task than the DestroyWindow
API function.

Thanx, Tadej