char buffer[MAX_PATH];GetModuleFileNameA( NULL, buffer, MAX_PATH );PathRemoveFileSpecA(buffer);// c: d: 和后边路径合并char cfg_path[MAX_PATH];PathCombineA(cfg_path, buffer, "config.cfg");char* s = PathFindExtensionA(cfg_path);fmt::print("{}\n", s);char* s2 = PathFindFileNameA(cfg_path);fmt::print("{}\n", s2);char* s3 = PathFindNextComponentA(cfg_path);fmt::print("{}\n", s3);// 普通的路径增加,注意第一个参数char buffer_1[MAX_PATH] = "name_1\\name_2";PathAppendA(buffer_1, "def\\123");// 文件或文件夹是否存在1就代表存在int ret = PathFileExistsA("d:\\log1.txt");int ret2 = PathFileExistsA("E:\\vs2010-c++\\fmtTest");