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.

43 lines
1.1 KiB

  1. //***************************************************************************
  2. // Copyright (c) Microsoft Corporation
  3. //
  4. // Module Name:
  5. // TRIGGERCONSUMER.H
  6. //
  7. // Abstract:
  8. // Contains CTriggerConsumer definition.
  9. //
  10. // Author:
  11. // Vasundhara .G
  12. //
  13. // Revision History:
  14. // Vasundhara .G 9-oct-2k : Created It.
  15. //***************************************************************************
  16. #ifndef __TRIGGER_CONSUMER_H
  17. #define __TRIGGER_CONSUMER_H
  18. // event consumer class
  19. class CTriggerConsumer : public IWbemUnboundObjectSink
  20. {
  21. private:
  22. DWORD m_dwCount; // holds the object reference count
  23. ITaskScheduler* GetTaskScheduler();
  24. public:
  25. CTriggerConsumer();
  26. ~CTriggerConsumer();
  27. // IUnknown members
  28. STDMETHODIMP_(ULONG) AddRef( void );
  29. STDMETHODIMP_(ULONG) Release( void );
  30. STDMETHODIMP QueryInterface( REFIID riid, LPVOID* ppv );
  31. // This routine ultimately receives the event.
  32. STDMETHOD(IndicateToConsumer)( IWbemClassObject* pLogicalConsumer,
  33. LONG lNumObjects, IWbemClassObject** ppObjects );
  34. };
  35. #endif // __TRIGGER_CONSUMER_H