windows-nt/Source/XPSP1/NT/shell/cpls/appwzdui/slowfind.h
2020-09-26 16:20:57 +08:00

38 lines
1 KiB
C++

#ifndef __SLOWFIND_H_
#define __SLOWFIND_H_
#include "appsize.h"
#define MAX_PROGFILES_SEARCH_DEPTH 1
#define MAX_STARTMENU_SEARCH_DEPTH 2
HRESULT GetShortcutTarget(LPCWSTR pszPath, LPTSTR pszTarget, UINT cch);
BOOL SlowFindAppFolder(LPCTSTR pszFullName, LPCTSTR pszShortName, LPTSTR pszFolder);
class CStartMenuAppFinder : public CAppFolderSize
{
friend BOOL SlowFindAppFolder(LPCTSTR pszFullName, LPCTSTR pszShortName, LPTSTR pszFolder);
public:
CStartMenuAppFinder(LPCTSTR pszFullName, LPCTSTR pszShortName, LPTSTR pszFolder);
// *** IShellTreeWalkerCallBack methods ***
STDMETHODIMP FoundFile(LPCWSTR pwszFolder, TREEWALKERSTATS *ptws, WIN32_FIND_DATAW * pwfd);
STDMETHODIMP EnterFolder(LPCWSTR pwszFolder, TREEWALKERSTATS *ptws, WIN32_FIND_DATAW * pwfd);
HRESULT SearchInFolder(LPCTSTR pszStart);
protected:
BOOL _MatchSMLinkWithApp(LPCTSTR pszLnkFile);
LPCTSTR _pszFullName;
LPCTSTR _pszShortName;
// The Result
LPTSTR _pszFolder;
// Best match found
int _iBest;
};
#endif // _SLOWFIND_H_