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.

53 lines
1.9 KiB

  1. //---------------------------------------------------------------------------
  2. // NotifyConnPtCn.h : CVDNotifyDBEventsConnPtCont header file
  3. //
  4. // Copyright (c) 1996 Microsoft Corporation, All Rights Reserved
  5. // Developed by Sheridan Software Systems, Inc.
  6. //---------------------------------------------------------------------------
  7. #ifndef __CVDNOTIFYDBEVENTSCONNPTCONT__
  8. #define __CVDNOTIFYDBEVENTSCONNPTCONT__
  9. class CVDNotifier; // forward references
  10. class CVDNotifyDBEventsConnPt;
  11. class CVDNotifyDBEventsConnPtCont : public IConnectionPointContainer
  12. {
  13. protected:
  14. // Construction/Destruction
  15. CVDNotifyDBEventsConnPtCont();
  16. ~CVDNotifyDBEventsConnPtCont();
  17. public:
  18. static HRESULT Create(CVDNotifier * pNotifier, CVDNotifyDBEventsConnPtCont ** ppConnPtContainer);
  19. void Destroy();
  20. public:
  21. // Access functions
  22. CVDNotifyDBEventsConnPt * GetNotifyDBEventsConnPt() const {return m_pNotifyDBEventsConnPt;}
  23. protected:
  24. // Data members
  25. CVDNotifier * m_pNotifier;
  26. CVDNotifyDBEventsConnPt * m_pNotifyDBEventsConnPt; // there is only one connection point
  27. // namely INotifyDBEvents
  28. public:
  29. // IUnknown methods -- there are required since we inherit from variuos
  30. // people who themselves inherit from IUnknown.
  31. //
  32. //=--------------------------------------------------------------------------=
  33. // IUnknown methods
  34. //
  35. STDMETHOD(QueryInterface)(REFIID riid, void **ppvObjOut);
  36. STDMETHOD_(ULONG, AddRef)(void);
  37. STDMETHOD_(ULONG, Release)(void);
  38. //=--------------------------------------------------------------------------=
  39. // IConnectionPointContainer methods
  40. //
  41. STDMETHOD(EnumConnectionPoints)(THIS_ LPENUMCONNECTIONPOINTS FAR* ppEnum);
  42. STDMETHOD(FindConnectionPoint)(THIS_ REFIID iid, LPCONNECTIONPOINT FAR* ppCP);
  43. };
  44. /////////////////////////////////////////////////////////////////////////////
  45. #endif //__CVDNOTIFYDBEVENTSCONNPTCONT__