GetWindowsDirectory      ->      c:\windows or c:\

GetTempPath           ->      CurrentUser::%Tmp% || System::%Tmp% || CurrentUser::%Temp% || System::%Temp%

 


 

SHGetKnownFolderPath

Do Not use environment string for well-known directory any more, use this function instead.

#include <shlobj.h>

wchar_t *fullpath = NULL; SHGetKnownFolderPath(FOLDERID_ProgramFiles, 0, NULL, &fullpath); // C:\Program Files CoTaskMemFree(fullpath);

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
  • 2021-10-11
  • 2021-11-23
  • 2021-09-23
猜你喜欢
  • 2022-12-23
  • 2022-02-23
  • 2021-08-14
  • 2021-11-12
  • 2022-03-11
  • 2022-12-23
  • 2022-03-09
相关资源
相似解决方案