我正在使用云镜sample,并且我可以在Windows Update KB4592449之前正确地创建占位符。但在此更新之后,我无法使用sample中使用的CfCreatePlaceholders函数在基本目录路径中为第二级或更高级别的文件夹创建占位符,错误代码8007017c现在由该函数启动。我回顾了这个西班牙文件,其中提到了使用18362.1256和18363.1256操作系统编译可以避免作为系统帐户执行的应用程序可以在“article:”端口中打印的安全漏洞。还有一个建议是:确保您的应用程序和服务是以特定用户或服务帐户执行的。目前,我尝试使用PsExec和Process Hacker工具以另一个账号的身份执行我的应用程序,但是我无法使用另一个账号执行我的应用程序,而且我不确定这样做会不会解决我的问题。如果有人能帮我,我将不胜感激,谢谢。
发布于 2020-12-16 15:13:49
我可以在OS Build 19042.685上重现这个问题。
以下是您可以参考的(临时)解决方法示例:
更改CloudMirror的以下代码行
std::wstring relativeName(sourceSubDir);
relativeName.append(findData.cFileName);
至
std::wstring relativeName(findData.cFileName); // relativeName is just the file name
std::wstring destDir(destPath);
destDir.append(L"\\");
destDir.append(sourceSubDir); // destPath is complete directory of the file including the subfolder under root directory
// ...
winrt::check_hresult(CfCreatePlaceholders(destDir.data(), &cloudEntry, 1, CF_CREATE_FLAG_NONE, NULL));
https://stackoverflow.com/questions/65307825
复制相似问题