Setting the minimum Windows version supported (C++)

Recently, I was trying to use the Shell function SHGetFolderPath. Despite including the correct header file (shlobj.h), the compiler wasn’t recognizing it. My code looked like this:

CString strPath;
HRESULT hResult = SHGetFolderPath(
NULL,
CSIDL_APPDATA,
[...]

Popularity: 4% [?]