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.

40 lines
674 B

  1. #pragma once
  2. #ifndef _SVMUTIL_H_
  3. #define _SVMUTIL_H_
  4. /*
  5. SVMUTIL.H
  6. (c) copyright 1998 Microsoft Corp
  7. Declarations for shared utility functions
  8. Robert Rounthwaite (RobertRo@microsoft.com)
  9. */
  10. inline bool FTimeEmpty(FILETIME &ft)
  11. {
  12. return ((ft.dwLowDateTime == 0) && (ft.dwHighDateTime == 0));
  13. }
  14. inline bool FTimeEmpty(CTime &t)
  15. {
  16. return (t.GetYear()<=1970);
  17. }
  18. enum FeatureLocation
  19. {
  20. locNil = 0,
  21. locBody = 1,
  22. locSubj = 2,
  23. locFrom = 3,
  24. locTo = 4,
  25. locSpecial = 5
  26. };
  27. bool SpecialFeatureUpperCaseWords(char *pszText);
  28. bool SpecialFeatureNonAlpha(char *pszText);
  29. bool FWordPresent(char *szText, char *szWord);
  30. #endif