jjzjj

SetCurrentDirectoryW

全部标签

windows - SetCurrentDirectoryW 中的错误 206

在我的previousunclearquestion之后,我以某种方式能够创建一个具有长路径名的目录。但是,如果我尝试通过添加长路径名前缀来访问它,它仍然会抛出如下错误。ERROR_FILENAME_EXCED_RANGE206(0xCE)Thefilenameorextensionistoolong.这是我正在使用的代码片段(在带有VS2015Update3编译器的Windows7上)#include#includeintmain(){conststd::wstringwdir_path(L"\\\\?\\c:\\temp\\aLongPathnameComponent\\aLong