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.

74 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. perfutil.h
  5. Abstract:
  6. The header file that defines the constants and variables used in
  7. the functions defined in the file perfutil.c
  8. Environment:
  9. User Mode Service
  10. Revision History:
  11. --*/
  12. #ifndef _PERFUTIL_H_
  13. #define _PERFUTIL_H_
  14. #define QUERY_GLOBAL 1
  15. #define QUERY_ITEMS 2
  16. #define QUERY_FOREIGN 3
  17. #define QUERY_COSTLY 4
  18. // Signatures of functions implemented in perfutil.c
  19. DWORD GetQueryType (IN LPWSTR);
  20. BOOL IsNumberInUnicodeList (DWORD, LPWSTR);
  21. //
  22. // Counter Structure returned by the Object
  23. //
  24. typedef struct _FRS_PERF_DATA_DEFINITION {
  25. PERF_OBJECT_TYPE ObjectType; // ReplicaConn or Replica Set Object
  26. PERF_COUNTER_DEFINITION NumStat[1]; // The array of PERF_COUNTER_DEFINITION structures
  27. } FRS_PERF_DATA_DEFINITION, *PFRS_PERF_DATA_DEFINITION;
  28. //
  29. // Structure used in the Open function Initialization to set counter
  30. // counter type, size and offset.
  31. //
  32. //
  33. typedef struct _FRS_PERF_INIT_VALUES {
  34. PWCHAR name; // name of the counter
  35. DWORD size; // size of the counter type
  36. DWORD offset; // offset of the counter in the structure
  37. DWORD counterType; // Type of (PERFMON) counter
  38. DWORD Flags; // Flags. see def above.
  39. } FRS_PERF_INIT_VALUES, *PFRS_PERF_INIT_VALUES;
  40. DWORD
  41. InitializeObjectData (
  42. DWORD ObjectLength,
  43. DWORD ObjectNameTitleIndex,
  44. DWORD NumCounters,
  45. PFRS_PERF_DATA_DEFINITION FrsPerfDataDef,
  46. PFRS_PERF_INIT_VALUES FrsInitValueDef,
  47. DWORD SizeOfCounterData
  48. );
  49. #endif