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.1 KiB

  1. // tmpcnsmr.h: interface for the CConsumer class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined( __TMPCNSMR_H )
  5. #define __TMPCNSMR_H
  6. #include <wbemprov.h>
  7. //#include "eqde.h"
  8. class CEventQueryDataCollector; // Forward declaration
  9. enum HMTEMPEVENT_TYPE {HMTEMPEVENT_ACTION, HMTEMPEVENT_EQDC, HMTEMPEVENT_ACTIONERROR, HMTEMPEVENT_ACTIONSID};
  10. class CTempConsumer : public IWbemObjectSink
  11. {
  12. // Constructor/Destructor
  13. public:
  14. CTempConsumer(HMTEMPEVENT_TYPE eventType);
  15. CTempConsumer(LPTSTR szGUID);
  16. CTempConsumer(CEventQueryDataCollector *pEQDC);
  17. virtual ~CTempConsumer();
  18. public:
  19. // IUnknown
  20. STDMETHODIMP QueryInterface(REFIID riid, LPVOID* ppv);
  21. STDMETHODIMP_(ULONG) AddRef(void);
  22. STDMETHODIMP_(ULONG) Release(void);
  23. STDMETHODIMP Indicate(long lObjectCount, IWbemClassObject** ppObjArray);
  24. STDMETHODIMP SetStatus(long lFlags, HRESULT hResult, BSTR strParam,
  25. IWbemClassObject* pObjParam);
  26. private:
  27. UINT m_cRef;
  28. TCHAR m_szGUID[1024];
  29. CEventQueryDataCollector *m_pEQDC;
  30. HMTEMPEVENT_TYPE m_hmTempEventType;
  31. };
  32. #endif // __TMPCNSMR_H