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.

50 lines
1.3 KiB

  1. // HMSystemStatus.h: interface for the CHMSystemStatus class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_HMSYSTEMSTATUS_H__3779B729_FD95_11D2_BDCF_0000F87A3912__INCLUDED_)
  5. #define AFX_HMSYSTEMSTATUS_H__3779B729_FD95_11D2_BDCF_0000F87A3912__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "HMDataGroupStatus.h"
  10. class CHMSystemStatus : public CHMEvent
  11. {
  12. DECLARE_DYNCREATE(CHMSystemStatus)
  13. // Construction/Destruction
  14. public:
  15. CHMSystemStatus();
  16. virtual ~CHMSystemStatus();
  17. // Create
  18. public:
  19. HRESULT Create(const CString& sMachineName);
  20. HRESULT Create(IWbemClassObject* pObject);
  21. // Enumeration Operations
  22. public:
  23. HRESULT EnumerateObjects(ULONG& uReturned); // rentrant...continue to call until uReturned == 0
  24. // Property Retreival Operations
  25. public:
  26. virtual HRESULT GetAllProperties();
  27. // Microsoft_HMSystemStatus properties
  28. public:
  29. CString m_sName; // Name of the system
  30. int m_iState; // The state we are in - rollup from all Microsoft_HMDataGroups.
  31. COleSafeArray m_DataGroups;
  32. DataGroupStatusArray m_DGStatus;
  33. // Status Rollup Operations
  34. public:
  35. void RemoveStatusEvent(CHMEvent* pEvent);
  36. };
  37. #endif // !defined(AFX_HMSYSTEMSTATUS_H__3779B729_FD95_11D2_BDCF_0000F87A3912__INCLUDED_)