SHGetFolderPath undeclared identifier
I am having some difficulty getting the path to a users 'My Documents'. I have tried several ways but this seems to be the closest to succeeding (only 1 error.) I assumed that I had included the correct headers but I get an undeclared identifier. I would greatly appreciate some help to get me back on track.
Code:
char * szPath[MAX_PATH];
// From MSDN
// CSIDL_PERSONAL or L"::{450d8fba-ad25-11d0-98a8-0800361b1103}"
if (( SHGetFolderPath( hwnd, CSIDL_PERSONAL , NULL, 0, szPath ) ) )
{
// do something usefull...
}
error C2065: 'SHGetFolderPath' : undeclared identifier