我调用此函数来获取exe的路径。 GetModuleFileName(NULL,... 问题是有时它返回短路径(8.3)而不是正常的长路径。
MSDN指定
The string returned will use the same format that was specified when the module was loaded. Therefore, the path can be a long or short file name, and can use the prefix "\\?\".
如何避免此行为并强制Api返回完整路径?