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.

64 lines
1.9 KiB

  1. /******************************************************************************
  2. P E R F O R M A N C E D A T A
  3. Name: perfdata.h
  4. Description:
  5. This module contains function prototypes and defines used in
  6. objdata.c, instdata.c, and cntrdata.c.
  7. ******************************************************************************/
  8. typedef PERF_DATA_BLOCK PERF_DATA, *PPERF_DATA;
  9. typedef PERF_OBJECT_TYPE PERF_OBJECT, *PPERF_OBJECT;
  10. typedef PERF_INSTANCE_DEFINITION PERF_INSTANCE, *PPERF_INSTANCE;
  11. typedef PERF_COUNTER_DEFINITION PERF_COUNTER, *PPERF_COUNTER;
  12. DWORD GetPerfData (HKEY hPerfKey,
  13. LPTSTR szObjectIndex,
  14. PPERF_DATA *ppData,
  15. DWORD *pDataSize);
  16. DWORD GetPerfTitleSz
  17. (HKEY hKeyMachine,
  18. HKEY hKeyPerf,
  19. LPTSTR *TitleBuffer,
  20. LPTSTR *TitleSz[],
  21. DWORD *TitleLastIdx);
  22. PPERF_OBJECT FirstObject (PPERF_DATA pData);
  23. PPERF_OBJECT NextObject (PPERF_OBJECT pObject);
  24. PPERF_OBJECT FindObject (PPERF_DATA pData, DWORD TitleIndex);
  25. PPERF_OBJECT FindObjectN (PPERF_DATA pData, DWORD N);
  26. PPERF_INSTANCE FirstInstance (PPERF_OBJECT pObject);
  27. PPERF_INSTANCE NextInstance (PPERF_INSTANCE pInst);
  28. PPERF_INSTANCE FindInstanceN (PPERF_OBJECT pObject, DWORD N);
  29. PPERF_INSTANCE FindInstanceParent (PPERF_INSTANCE pInst, PPERF_DATA pData);
  30. LPTSTR InstanceName (PPERF_INSTANCE pInst);
  31. PPERF_COUNTER FirstCounter (PPERF_OBJECT pObject);
  32. PPERF_COUNTER NextCounter (PPERF_COUNTER pCounter);
  33. PPERF_COUNTER FindCounter (PPERF_OBJECT pObject, DWORD TitleIndex);
  34. PVOID CounterData (PPERF_INSTANCE pInst, PPERF_COUNTER pCount);