Leaked source code of windows server 2003
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.

57 lines
1.1 KiB

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