草庐IT

GetFullPathNameW

全部标签

c++ - GetFullPathNameW 和长 Windows 文件路径

在我当前个人项目的Windows版本中,我希望支持extendedlengthfilepaths.因此,我对如何使用GetFullPathNameW有点困惑。用于解析长文件路径全名的API。根据MSDN(关于lpFileName参数):IntheANSIversionofthisfunction,thenameislimitedtoMAX_PATHcharacters.Toextendthislimitto32,767widecharacters,calltheUnicodeversionofthefunctionandprepend"\?\"tothepath.Formoreinfo