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.

60 lines
1.6 KiB

  1. // HMDataElementStatus.h: interface for the CHMDataElementStatus class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_HMDATAELEMENTSTATUS_H__2C8B4D54_02FB_11D3_BDD8_0000F87A3912__INCLUDED_)
  5. #define AFX_HMDATAELEMENTSTATUS_H__2C8B4D54_02FB_11D3_BDD8_0000F87A3912__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "HMRuleStatus.h"
  10. class CHMDataElementStatus : public CHMEvent
  11. {
  12. DECLARE_DYNCREATE(CHMDataElementStatus)
  13. // Construction/Destruction
  14. public:
  15. CHMDataElementStatus();
  16. virtual ~CHMDataElementStatus();
  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_HMDataElementStatus properties
  28. public:
  29. CString m_sName; // Name of the system
  30. CString m_sGuid;
  31. int m_iState; // The state we are in - rollup from all Microsoft_HMConfigs.
  32. CString m_sDTime; // yyyymmddhhmmss.ssssssXUtc; X = GMT(+ or -), Utc = 3 dig. GMT minute
  33. CString m_sMessage;
  34. CString m_sStatusGuid;
  35. CString m_sState;
  36. CString m_sDateTime;
  37. SYSTEMTIME m_st;
  38. COleSafeArray m_Rules;
  39. RuleStatusArray m_RuleStatus;
  40. // Status Rollup Operations
  41. public:
  42. void RemoveStatusEvent(CHMEvent* pEvent);
  43. };
  44. typedef CTypedPtrArray<CObArray,CHMDataElementStatus*> DataElementStatusArray;
  45. #endif // !defined(AFX_HMDATAELEMENTSTATUS_H__2C8B4D54_02FB_11D3_BDD8_0000F87A3912__INCLUDED_)