How do I get the application data path in Windows using C++?

前端 未结 3 1243
北恋
北恋 2020-12-01 10:54

I looked all over the internet and there doesn\'t seem to be a decent solution that I could find. I want to be able to programmatically in C++ obtain the path \"%ALLUSERSPRO

3条回答
  •  囚心锁ツ
    2020-12-01 11:23

    you can also read the value from the registry

    path = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

    key = Common AppData

提交回复
热议问题