Source code of Windows XP (NT5)
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.

68 lines
3.0 KiB

  1. // GlobalRoutines.h: interface for the CGlobalRoutines class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_GLOBALROUTINES_H__CA00ED33_46D7_11D2_8DAA_204C4F4F5020__INCLUDED_)
  5. #define AFX_GLOBALROUTINES_H__CA00ED33_46D7_11D2_8DAA_204C4F4F5020__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "ProcessFileName.h"
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. //////////////////////////////////////////////////////////////////
  14. enum enumAPPDRIVERMODE
  15. {
  16. APPDRIVER_NAVIGATION_MODE_NORMAL = 1,
  17. APPDRIVER_NAVIGATION_MODE_RANDOM = 2,
  18. APPDRIVER_NAVIGATION_MODE_EXPLORE = 3,
  19. APPDRIVER_NAVIGATION_MODE_LISTEN = 4
  20. };
  21. //////////////////////////////////////////////////////////////////
  22. void LTAPIENTRY DumpComError(_com_error & ce);
  23. BOOL ProcessFileName(const CString& strOriginalFileName, CCHECKFILENAME& procFileName);
  24. void LTAPIENTRY GetPathComponents (const CLString& strFullPath, CLString* pDrive,
  25. CLString* pDirectory,
  26. CLString* pName,
  27. CLString* pExtension, CLString* pLastExtension = NULL, BOOL bCleanUp = TRUE );
  28. void LTAPIENTRY StripTrailingCharacter(CLString& rText, TCHAR chTrailing);
  29. void LTAPIENTRY AddTrailingSlash(CLString& rText);
  30. void LTAPIENTRY GetExtensionList(CStringList& strList, const CLString& strFileExtensions, const TCHAR chDelimiter = _T('.'));
  31. BOOL LTAPIENTRY FindExtension(const CLString& strFileExt, const CLString& strUserExt);
  32. void LTAPIENTRY StripLeadingCharacter(CLString& rText, TCHAR chLeading);
  33. void LTAPIENTRY SetStrLength(CLString& Text, int nLength);
  34. bool LTAPIENTRY GetAppDriverNavigationMode(const int nIndex, int& nrefAppNavigationMode);
  35. bool LTAPIENTRY GetLTANavigationMode(const int nAppNavigationMode, int& nrefIndex);
  36. bool LTAPIENTRY GetAppDriverDurationType(const int nIndex, int& nrefAppDurationType);
  37. bool LTAPIENTRY GetLTADurationType(const int nrefAppDurationType, int& nrefIndex);
  38. void LTAPIENTRY FillLBTextList(CStringList &refStrList, CListBox* pLB);
  39. void LTAPIENTRY GetLBTextList(CStringList &refStrList, CListBox* pLB);
  40. int LTAPIENTRY GetGridComboList(CLString& strList, LPTSTR* rgszItems);
  41. void LTAPIENTRY ReplaceEntityRefChars(CLString& strXML);
  42. bool LTAPIENTRY GetAppDirectory(CLString& strAppDir);
  43. bool LTAPIENTRY GetWorkSpaceFileName(CLString& strWorkSpaceFileName);
  44. bool LTAPIENTRY GetNavDelayIndex(int nDelayMSec, int& refnDelayIndex);
  45. void LTAPIENTRY GetDelayMSec(const int nDelayIndex, int& nDelayMSec);
  46. bool LTAPIENTRY FindInStrList(CLString strSearch, CStringList& refStrList);
  47. CBitmap* LTAPIENTRY GetPreviewBitmap(CWnd* pParent, LPCDLGTEMPLATE pTemplate);
  48. void LTAPIENTRY SetComboBoxCurSel(CComboBox& refComboBox, CLString& strCurSelString);
  49. void LTAPIENTRY FormatEditControlString(CLString& strOriginalOutput);
  50. //////////////////////////////////////////////////////////////////
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. //////////////////////////////////////////////////////////////////
  55. #endif // !defined(AFX_GLOBALROUTINES_H__CA00ED33_46D7_11D2_8DAA_204C4F4F5020__INCLUDED_)