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.

80 lines
1.8 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. Murali R. Krishnan ( MuraliK ) 16-Nov-1995
  10. From the common code for perfmon interface (Russ Blake's).
  11. Environment:
  12. User Mode
  13. Project:
  14. Internet Services Common Runtime code
  15. Revision History:
  16. Sophia Chung (sophiac) 05-Nov-1996
  17. Added supports for mutlitple instances.
  18. --*/
  19. # ifndef _PERFUTIL_H_
  20. # define _PERFUTIL_H_
  21. //
  22. // Utility macro. This is used to reserve a DWORD multiple of
  23. // bytes for Unicode strings embedded in the definitional data,
  24. // viz., object instance names.
  25. //
  26. #define DWORD_MULTIPLE(x) (((x+sizeof(DWORD)-1)/sizeof(DWORD))*sizeof(DWORD))
  27. #define QWORD_MULTIPLE(x) ((((x)+sizeof(LONGLONG)-1)/sizeof(LONGLONG))*sizeof(LONGLONG))
  28. /************************************************************
  29. * Symbolic Constants
  30. ************************************************************/
  31. #define QUERY_GLOBAL 1
  32. #define QUERY_ITEMS 2
  33. #define QUERY_FOREIGN 3
  34. #define QUERY_COSTLY 4
  35. /************************************************************
  36. * Function Declarations
  37. ************************************************************/
  38. DWORD
  39. GetQueryType (IN LPWSTR lpwszValue);
  40. BOOL
  41. IsNumberInUnicodeList (IN DWORD dwNumber, IN LPWSTR lpwszUnicodeList);
  42. VOID
  43. MonBuildInstanceDefinition(
  44. OUT PERF_INSTANCE_DEFINITION *pBuffer,
  45. OUT PVOID *pBufferNext,
  46. IN DWORD ParentObjectTitleIndex,
  47. IN DWORD ParentObjectInstance,
  48. IN DWORD UniqueID,
  49. IN LPWSTR Name
  50. );
  51. # endif // _PERFUTIL_H_
  52. /************************ End of File ***********************/