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.

56 lines
1.0 KiB

  1. /*++
  2. Copyright (C) 1999-2001 Microsoft Corporation
  3. Module Name:
  4. PERFNDB.H
  5. Abstract:
  6. History:
  7. --*/
  8. #ifndef __PERFNDB_H__
  9. #define __PERFNDB_H__
  10. #include <wbemcomn.h>
  11. #include "adapelem.h"
  12. #include "ntreg.h"
  13. class CPerfNameDb: public CAdapElement
  14. {
  15. public:
  16. CPerfNameDb(HKEY hKey);
  17. ~CPerfNameDb();
  18. HRESULT Init(HKEY hKey);
  19. BOOL IsOk(void){ return m_fOk; };
  20. HRESULT GetDisplayName( DWORD dwIndex, WString& wstrDisplayName );
  21. HRESULT GetDisplayName( DWORD dwIndex, LPCWSTR* ppwcsDisplayName );
  22. HRESULT GetHelpName( DWORD dwIndex, WString& wstrHelpName );
  23. HRESULT GetHelpName( DWORD dwIndex, LPCWSTR* ppwcsHelpName );
  24. //VOID Dump();
  25. static DWORD GetSystemReservedHigh(){return s_SystemReservedHigh; };
  26. private:
  27. // these are the MultiSz Pointers
  28. WCHAR * m_pMultiCounter;
  29. WCHAR * m_pMultiHelp;
  30. // these are the "indexed" pointers
  31. WCHAR ** m_pCounter;
  32. WCHAR ** m_pHelp;
  33. DWORD m_Size;
  34. static DWORD s_SystemReservedHigh;
  35. //
  36. BOOL m_fOk;
  37. };
  38. #endif