GetPath (LPSTR pszFile, int cchMaxPath,
WIN32_FIND_DATA *pfd,
DWORD fFlags);
Gets the current fully qualified path for the shortcut object. The string containing the path is copied into the pszFile parameter. The pfd parameter is a pointer to a WIN32_FIND_DATA structure. This is the same information that is returned when making a call to FindFirstFile and FindNextFile, and it includes the file's attributes, creation time, and so on. The fFlags parameter can be set to SLGP_UNCPRIORITY to obtain the Universal Naming Convention (UNC) path to the file.