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.

55 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. PerfSharedMemory.h
  5. Abstract:
  6. Class to hold per-object perfmon specific functions
  7. Author:
  8. Christopher Bergh (cbergh) 10-Sept-1988
  9. Revision History:
  10. --*/
  11. #if !defined(AFX_PERFSHAREDMEMORY_H)
  12. #define AFX_PERFSHAREDMEMORY_H
  13. #include "PassportSharedMemory.h"
  14. #include "WinPerf.h"
  15. #include "PassportPerfInterface.h"
  16. class PassportExport PerfSharedMemory : public PassportSharedMemory
  17. {
  18. public:
  19. PerfSharedMemory();
  20. virtual ~PerfSharedMemory();
  21. BOOL initialize( const DWORD &dwNumCounters,
  22. const DWORD &dwFirstCounter,
  23. const DWORD &dwFirstHelp);
  24. VOID setDefaultCounterType (
  25. const DWORD dwIndex,
  26. const DWORD dwType );
  27. BOOL checkQuery ( const LPWSTR lpValueName );
  28. ULONG spaceNeeded ( void );
  29. BOOL writeData ( LPVOID *lppData,
  30. LPDWORD lpNumObjectTypes );
  31. private:
  32. DWORD m_dwNumCounters;
  33. PERF_OBJECT_TYPE m_Object;
  34. PERF_COUNTER_DEFINITION m_Counter[PassportPerfInterface::MAX_COUNTERS]; // array of counter defintions
  35. };
  36. #endif