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.

86 lines
2.0 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) 1999--2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // CAlertEmailConsumerProvider.h
  7. //
  8. // Description:
  9. // Implement the interfaces of IWbemEventConsumerProvider and
  10. // IWbemProviderInit.
  11. //
  12. // [Implementation Files:]
  13. // CAlertEmailConsumerProvider.cpp
  14. //
  15. // History:
  16. // Xing Jin (i-xingj) 23-Dec-2000
  17. //
  18. //////////////////////////////////////////////////////////////////////////////
  19. #pragma once
  20. //////////////////////////////////////////////////////////////////////////////
  21. //
  22. //
  23. // class CAlertEmailConsumerProvider
  24. //
  25. // Description:
  26. // Implemented as WMI event consumer provider for
  27. // filtering alert event.
  28. //
  29. // History
  30. // Xing Jin (i-xingj) 23-Dec-2000
  31. //
  32. //////////////////////////////////////////////////////////////////////////////
  33. class CAlertEmailConsumerProvider :
  34. public IWbemEventConsumerProvider,
  35. public IWbemProviderInit
  36. {
  37. //
  38. // Public data
  39. //
  40. public:
  41. //
  42. // Constructors & Destructors
  43. //
  44. CAlertEmailConsumerProvider();
  45. ~CAlertEmailConsumerProvider();
  46. //
  47. // IUnknown members
  48. //
  49. STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  50. STDMETHODIMP_(ULONG) AddRef(void);
  51. STDMETHODIMP_(ULONG) Release(void);
  52. //
  53. // IWbemProviderInit members
  54. //
  55. STDMETHOD(Initialize)(
  56. LPWSTR pszUser,
  57. LONG lFlags,
  58. LPWSTR pszNamespace,
  59. LPWSTR pszLocale,
  60. IWbemServices __RPC_FAR *pNamespace,
  61. IWbemContext __RPC_FAR *pCtx,
  62. IWbemProviderInitSink __RPC_FAR *pInitSink
  63. );
  64. //
  65. // IWbemEventConsumerProvider members
  66. //
  67. STDMETHOD(FindConsumer)(
  68. IWbemClassObject* pLogicalConsumer,
  69. IWbemUnboundObjectSink** ppConsumer
  70. );
  71. //
  72. // Private data
  73. //
  74. private:
  75. LONG m_cRef;
  76. };