C++获取appdata路径的方式: SHGetSpecialFolderPath
wchar_t buffer[MAX_PATH]; BOOL result = SHGetSpecialFolderPath(0, buffer, CSIDL_LOCAL_APPDATA, false); // result = C:\Users\用户名\AppData\Local
2023-09-25 12:19:34
C++获取appdata路径的方式: SHGetSpecialFolderPath
wchar_t buffer[MAX_PATH]; BOOL result = SHGetSpecialFolderPath(0, buffer, CSIDL_LOCAL_APPDATA, false); // result = C:\Users\用户名\AppData\Local