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.

38 lines
1.0 KiB

  1. #ifndef _ACTION_H__
  2. #define _ACTION_H__
  3. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  4. //
  5. // File Name: Action.h
  6. //
  7. // Description: Contains the class definition for the base performance
  8. // action object that is used by the Performance Engine. All
  9. // "actions" MUST Derive from this class, and implement the
  10. // Execute and Destructor functions as defined in this class.
  11. //
  12. // This code was implemented on top of skeleton code of WMI Performance
  13. // Test module.
  14. // However, they are not compatible due to great amount of changes.
  15. //
  16. // (c) 1999 Microsoft Corporation
  17. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  18. class CAction
  19. {
  20. public:
  21. CAction(IWbemServices* pWbem);
  22. virtual ~CAction();
  23. virtual void ReleaseAction() = 0;
  24. virtual HRESULT Execute() = 0;
  25. protected:
  26. HRESULT m_hStatus;
  27. IWbemServices* m_pWbem;
  28. };
  29. #endif