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.

57 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. PerfUtils.h
  5. Abstract:
  6. Perfmon utils
  7. Author:
  8. Christopher Bergh (cbergh) 10-Sept-1988
  9. Revision History:
  10. --*/
  11. #if !defined(AFX_PERFUTILS_H__968D9AF5_3EBF_11D2_9F35_00C04F8E7AED__INCLUDED_)
  12. #define AFX_PERFUTILS_H__968D9AF5_3EBF_11D2_9F35_00C04F8E7AED__INCLUDED_
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. #define QUERY_GLOBAL 1
  17. #define QUERY_ITEMS 2
  18. #define QUERY_FOREIGN 3
  19. #define QUERY_COSTLY 4
  20. // test for delimiter, end of line and non-digit characters
  21. // used by IsNumberInUnicodeList routine
  22. //
  23. #define DIGIT 1
  24. #define DELIMITER 2
  25. #define INVALID 3
  26. #define EvalThisChar(c,d) ( \
  27. (c == d) ? DELIMITER : \
  28. (c == 0) ? DELIMITER : \
  29. (c < (WCHAR)'0') ? INVALID : \
  30. (c > (WCHAR)'9') ? INVALID : \
  31. DIGIT)
  32. BOOL IsNumberInUnicodeList (
  33. IN DWORD dwNumber,
  34. IN LPWSTR lpwszUnicodeList
  35. );
  36. DWORD GetQueryType (IN LPWSTR lpValue);
  37. #define DWORD_MULTIPLE(x) (((x+sizeof(DWORD)-1)/sizeof(DWORD))*sizeof(DWORD))
  38. #endif