I am writing a Windows Store app with Visual Studio 2015 on Windows 10. My code is as follows:
#define WINVER 0x0A00
#define _WIN32_WINNT 0x0A00
#include <Shlobj.h>
...
HRESULT hr;
hr= SHGetKnownFolderPath(FOLDERID_LocalAppData, 0, NULL, &tempPath);
I tried to adding above version and header files. still nothing changed. How can I fix this?