src/Helpers.c
bool PathIsLnkFile(LPCWSTR pszPath)
{
  WCHAR tchResPath[MAX_PATH] = { L'\0' };

  if (!pszPath || !*pszPath)
    return false;

  if (StringCchCompareXI(PathFindExtension(pszPath), L".lnk")) {
    return false;
  }
  return PathGetLnkPath(pszPath,tchResPath,COUNTOF(tchResPath));
}
///////////////////////////////////////////////////////////////////////////////
//
//
//  Name: PathIsLnkFile()
//
//  Purpose: Determine whether pszPath is a Windows Shell Link File by
//           comparing the filename extension with L".lnk"
//
//  Manipulates:
//
PathIsLnkFile()
Purpose: Determine whether pszPath is a Windows Shell Link File by
comparing the filename extension with L".lnk"


PathIsLnkFile () Purpose : Determine whether pszPath is a Windows Shell Link File by comparing the filename extension with L " . lnk "
bool PathIsLnkFile(LPCWSTR pszPath)
{
  WCHAR tchResPath[MAX_PATH] = { L'\0' };
  if (!pszPath || !*pszPath)
    return false;
  if (StringCchCompareXI(PathFindExtension(pszPath), L".lnk")) {
    return false;
  }
  return PathGetLnkPath(pszPath,tchResPath,COUNTOF(tchResPath));
}
bool PathIsLnkFile ( LPCWSTR pszPath ) { WCHAR tchResPath [ MAX_PATH ] = { L' \0 ' } ; if ( ! pszPath || ! * pszPath ) return false ; if ( StringCchCompareXI ( PathFindExtension ( pszPath ) , L" " ) ) { return false ; } return PathGetLnkPath ( pszPath , tchResPath , COUNTOF ( tchResPath ) ) ; }
Name: PathIsLnkFile()
Purpose: Determine whether pszPath is a Windows Shell Link File by
comparing the filename extension with L".lnk"
Name : PathIsLnkFile () Purpose : Determine whether pszPath is a Windows Shell Link File by comparing the filename extension with L " . lnk "