modiy project and code to support window platform