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.

47 lines
1.1 KiB

  1. // HMContext.h: interface for the CHMContext class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_HMCONTEXT_H__22706B1F_412F_11D3_BE26_0000F87A3912__INCLUDED_)
  5. #define AFX_HMCONTEXT_H__22706B1F_412F_11D3_BE26_0000F87A3912__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "WbemClassObject.h"
  10. class CHMContext : public CWbemClassObject
  11. {
  12. DECLARE_DYNCREATE(CHMContext)
  13. // Construction/Destruction
  14. public:
  15. CHMContext();
  16. virtual ~CHMContext();
  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. virtual HRESULT SaveAllProperties();
  28. // Microsoft_HMContext properties
  29. public:
  30. CString m_sName;
  31. int m_iType;
  32. CString m_sValue;
  33. };
  34. typedef CTypedPtrArray<CObArray,CHMContext*> HMContextArray;
  35. #endif // !defined(AFX_HMCONTEXT_H__22706B1F_412F_11D3_BE26_0000F87A3912__INCLUDED_)