findapp.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. #ifndef __FINDAPP_H_
  2. #define __FINDAPP_H_
  3. // Match Levels
  4. #define MATCH_LEVEL_NOMATCH 0
  5. #define MATCH_LEVEL_LOW     1
  6. #define MATCH_LEVEL_NORMAL  2
  7. #define MATCH_LEVEL_HIGH    3
  8. // Parse a string to find the possible path in it
  9. BOOL ParseInfoString(LPCTSTR pszInfo, LPCTSTR pszFullName, LPCTSTR pszShortName, LPTSTR pszOut);
  10. // Match the app folder or exe name
  11. int MatchAppName(LPCTSTR pszName, LPCTSTR pszAppFullName, LPCTSTR pszAppShortName, BOOL bStrict);
  12. // Find the best match for an app folder give a path name
  13. int FindBestMatch(LPCTSTR pszFolder, LPCTSTR pszAppFullName, LPCTSTR pszAppShortName, BOOL bStrict, LPTSTR pszResult);
  14. // Find a sub word
  15. LPCTSTR FindSubWord(LPCTSTR pszStr, LPCTSTR pszSrch);
  16. // is the path a setup path, cStripLevel is the maximum level we go up in the
  17. // directory chain
  18. BOOL PathIsSetup(LPCTSTR pszFolder, int cStripLevel);
  19. BOOL PathIsCommonFiles(LPCTSTR pszPath);
  20. BOOL PathIsUnderWindows(LPCTSTR pszPath);
  21. #endif // _FINDAPP_H_