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.

41 lines
1014 B

  1. //============================================================
  2. //
  3. // PerfData.h - Performance Data helper class definition
  4. //
  5. // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
  6. //
  7. // 11/23/97 a-sanjes created
  8. //
  9. //============================================================
  10. #ifndef __PERFDATA_H__
  11. #define __PERFDATA_H__
  12. #include <winperf.h>
  13. #ifdef NTONLY
  14. class CPerformanceData
  15. {
  16. public :
  17. CPerformanceData() ;
  18. ~CPerformanceData() ;
  19. DWORD Open( LPCTSTR pszValue, LPDWORD pdwType, LPBYTE *lppData, LPDWORD lpcbData );
  20. // void Close( void );
  21. DWORD GetPerfIndex(LPCTSTR pszName);
  22. bool GetValue(DWORD dwObjIndex, DWORD dwCtrIndex, const WCHAR *szInstanceName, PBYTE pbData, unsigned __int64 *pTime);
  23. private:
  24. LONG RegQueryValueExExEx( HKEY hKey, LPTSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData );
  25. static bool m_fCloseKey;
  26. LPBYTE m_pBuff;
  27. };
  28. #endif
  29. #endif