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.

49 lines
1.4 KiB

  1. //=============================================================================
  2. //
  3. // Copyright (c) 1996-1999, Microsoft Corporation, All rights reserved
  4. //
  5. // FINDTRIG.H
  6. //
  7. // This file defines the classes for an event filter search engine.
  8. //
  9. // Classes defined:
  10. //
  11. // CEventFilterEnumerator An enumerator of event filters
  12. // CArrayEventFilterEnumerator Array-based enumerator of event filters
  13. // CSearchHint Information passed from one search to next
  14. // CEventFilterSearchEngine Search engine class.
  15. //
  16. // History:
  17. //
  18. // 11/27/96 a-levn Compiles.
  19. //
  20. //=============================================================================
  21. #ifndef __FIND_FILTER__H_
  22. #define __FIND_FILTER__H_
  23. #include "binding.h"
  24. #include "arrtempl.h"
  25. #include "essutils.h"
  26. class CCoreEventProvider :
  27. public CUnkBase<IWbemEventProvider, &IID_IWbemEventProvider>
  28. {
  29. protected:
  30. STDMETHOD(ProvideEvents)(IWbemObjectSink* pSink, long lFlags);
  31. protected:
  32. CEssSharedLock m_Lock;
  33. CEssNamespace* m_pNamespace;
  34. IWbemEventSink* m_pSink;
  35. public:
  36. CCoreEventProvider(CLifeControl* pControl = NULL);
  37. ~CCoreEventProvider();
  38. HRESULT SetNamespace(CEssNamespace* pNamespace);
  39. HRESULT Shutdown();
  40. HRESULT Fire(CEventRepresentation& Event, CEventContext* pContext);
  41. };
  42. #endif