Window api spawn kill