boolSaveToFile(char*Path,char*Data){HANDLEhFile;hFile=CreateFile(Path,GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);if(hFile==INVALID_HANDLE_VALUE){/*continue;//出错时处理*/}DWORDdwWrite;WriteFile(hFile,Data,strlen(Data),&dwWrite,NULL);CloseHandle(hFile);returntrue;}