Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

  1. #ifndef __SLOWFIND_H_
  2. #define __SLOWFIND_H_
  3. #include "appsize.h"
  4. #define MAX_PROGFILES_SEARCH_DEPTH 1
  5. #define MAX_STARTMENU_SEARCH_DEPTH 2
  6. HRESULT GetShortcutTarget(LPCWSTR pszPath, LPTSTR pszTarget, UINT cch);
  7. BOOL SlowFindAppFolder(LPCTSTR pszFullName, LPCTSTR pszShortName, LPTSTR pszFolder);
  8. class CStartMenuAppFinder : public CAppFolderSize
  9. {
  10. friend BOOL SlowFindAppFolder(LPCTSTR pszFullName, LPCTSTR pszShortName, LPTSTR pszFolder);
  11. public:
  12. CStartMenuAppFinder(LPCTSTR pszFullName, LPCTSTR pszShortName, LPTSTR pszFolder);
  13. // *** IShellTreeWalkerCallBack methods ***
  14. STDMETHODIMP FoundFile(LPCWSTR pwszFolder, TREEWALKERSTATS *ptws, WIN32_FIND_DATAW * pwfd);
  15. STDMETHODIMP EnterFolder(LPCWSTR pwszFolder, TREEWALKERSTATS *ptws, WIN32_FIND_DATAW * pwfd);
  16. HRESULT SearchInFolder(LPCTSTR pszStart);
  17. protected:
  18. BOOL _MatchSMLinkWithApp(LPCTSTR pszLnkFile);
  19. LPCTSTR _pszFullName;
  20. LPCTSTR _pszShortName;
  21. // The Result
  22. LPTSTR _pszFolder;
  23. // Best match found
  24. int _iBest;
  25. };
  26. #endif // _SLOWFIND_H_