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.

28 lines
1000 B

  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_