{
if((wfd.dwFileAttributes & (FILE_ATTRIBUTE_DIRECTORY|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_SYSTEM))==0)
{
str = wfd.cFileName;//file name
lstrcpy(buf,strPath2 + str);//file full pathname
if(str.Right(4) .CompareNoCase(_T(".url"))==0)
{
// an .URL file is formatted just like an .INI file, so we can
// use GetPrivateProfileString() to get the information we want
//fill the buf with URL
::GetPrivateProfileString(_T("InternetShortcut"), _T("URL"),
_T(""), buf, INTERNET_MAX_PATH_LENGTH,
strPath2 + str);
str = str.Left(str.GetLength() - 4);//the name of URL
}
if(str.Right(4) .CompareNoCase( _T(".lnk"))==0)
{
//fill the buf with link target
CGlobal::ResolveShortCut(NULL,strPath2 + str,buf);
&nb