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.

45 lines
1.1 KiB

  1. // HMSystem.h: interface for the CHMSystem class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_HMSYSTEM_H__B0D24253_F80C_11D2_BDC8_0000F87A3912__INCLUDED_)
  5. #define AFX_HMSYSTEM_H__B0D24253_F80C_11D2_BDC8_0000F87A3912__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "WbemClassObject.h"
  10. class CHMSystemConfiguration : public CWbemClassObject
  11. {
  12. DECLARE_DYNCREATE(CHMSystemConfiguration)
  13. // Construction/Destruction
  14. public:
  15. CHMSystemConfiguration();
  16. virtual ~CHMSystemConfiguration();
  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. HRESULT SaveEnabledProperty();
  28. // HMSystemConfiguration Attributes
  29. public:
  30. bool m_bEnable;
  31. CString m_sGuid;
  32. };
  33. #endif // !defined(AFX_HMSYSTEM_H__B0D24253_F80C_11D2_BDC8_0000F87A3912__INCLUDED_)