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.

68 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name :
  4. perfutil.h
  5. Abstract:
  6. This file supports routines used to parse and create Performance Monitor
  7. Data structures, used by all the Internet Services product.
  8. Author:
  9. Emily Kruglick ( EmilyK ) 28-Sep-2000
  10. Ported from IIS 5 tree.
  11. Environment:
  12. User Mode
  13. Project:
  14. Internet Services Common Runtime code
  15. Revision History:
  16. --*/
  17. # ifndef _PERFUTIL_H_
  18. # define _PERFUTIL_H_
  19. //
  20. // Utility macro. This is used to reserve a DWORD multiple of
  21. // bytes for Unicode strings embedded in the definitional data,
  22. // viz., object instance names.
  23. //
  24. #define DWORD_MULTIPLE(x) (((x+sizeof(DWORD)-1)/sizeof(DWORD))*sizeof(DWORD))
  25. #define QWORD_MULTIPLE(x) ((((x)+sizeof(LONGLONG)-1)/sizeof(LONGLONG))*sizeof(LONGLONG))
  26. /************************************************************
  27. * Symbolic Constants
  28. ************************************************************/
  29. #define QUERY_GLOBAL 1
  30. #define QUERY_ITEMS 2
  31. #define QUERY_FOREIGN 3
  32. #define QUERY_COSTLY 4
  33. /************************************************************
  34. * Function Declarations
  35. ************************************************************/
  36. DWORD
  37. GetQueryType (IN LPWSTR lpwszValue);
  38. BOOL
  39. IsNumberInUnicodeList (IN DWORD dwNumber, IN LPWSTR lpwszUnicodeList);
  40. # endif // _PERFUTIL_H_
  41. /************************ End of File ***********************/