Source code of Windows XP (NT5)
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.

49 lines
1.2 KiB

  1. // HMPropertyStatusInstance.h: interface for the CHMPropertyStatusInstance class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_HMPROPERTYSTATUSINSTANCE_H__A28C24E3_348F_11D3_BE18_0000F87A3912__INCLUDED_)
  5. #define AFX_HMPROPERTYSTATUSINSTANCE_H__A28C24E3_348F_11D3_BE18_0000F87A3912__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "WbemClassObject.h"
  10. class CHMPropertyStatusInstance : public CWbemClassObject
  11. {
  12. DECLARE_DYNCREATE(CHMPropertyStatusInstance)
  13. // Construction/Destruction
  14. public:
  15. CHMPropertyStatusInstance();
  16. virtual ~CHMPropertyStatusInstance();
  17. // Create
  18. public:
  19. HRESULT Create(const CString& sMachineName);
  20. HRESULT Create(IWbemClassObject* pObject);
  21. // Property Retreival Operations
  22. public:
  23. HRESULT GetAllProperties();
  24. // HMDataElementStatistics Properties
  25. public:
  26. CString m_sInstanceName;
  27. CString m_sCurrentValue;
  28. CString m_sMinValue;
  29. CString m_sMaxValue;
  30. CString m_sAvgValue;
  31. long m_lCurrentValue;
  32. long m_lMinValue;
  33. long m_lMaxValue;
  34. long m_lAvgValue;
  35. };
  36. typedef CTypedPtrArray<CObArray,CHMPropertyStatusInstance*> PropertyStatusInstanceArray;
  37. #endif // !defined(AFX_HMPROPERTYSTATUSINSTANCE_H__A28C24E3_348F_11D3_BE18_0000F87A3912__INCLUDED_)