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.

44 lines
1.6 KiB

  1. //---------------------------------------------------------------------------
  2. // enumcnpt.h : CVDConnectionPointContainer header file
  3. //
  4. // Copyright (c) 1996 Microsoft Corporation, All Rights Reserved
  5. // Developed by Sheridan Software Systems, Inc.
  6. //---------------------------------------------------------------------------
  7. #ifndef __CVDENUMCONNECTIONPOINTS__
  8. #define __CVDENUMCONNECTIONPOINTS__
  9. class CVDEnumConnPoints : public IEnumConnectionPoints
  10. {
  11. public:
  12. CVDEnumConnPoints(IConnectionPoint* pConnPt);
  13. virtual ~CVDEnumConnPoints();
  14. protected:
  15. DWORD m_dwRefCount;
  16. DWORD m_dwCurrentPosition;
  17. IConnectionPoint* m_pConnPt; // there is only one connection point
  18. public:
  19. // IUnknown methods -- there are required since we inherit from variuos
  20. // people who themselves inherit from IUnknown.
  21. //
  22. //=--------------------------------------------------------------------------=
  23. // IUnknown methods
  24. //
  25. STDMETHOD(QueryInterface)(REFIID riid, void **ppvObjOut);
  26. STDMETHOD_(ULONG, AddRef)(void);
  27. STDMETHOD_(ULONG, Release)(void);
  28. //=--------------------------------------------------------------------------=
  29. // IEnumConnectionPoints methods
  30. //
  31. STDMETHOD(Next)(THIS_ ULONG cConnections, LPCONNECTIONPOINT FAR* rgpcn,
  32. ULONG FAR* lpcFetched);
  33. STDMETHOD(Skip)(THIS_ ULONG cConnections);
  34. STDMETHOD(Reset)(THIS);
  35. STDMETHOD(Clone)(THIS_ LPENUMCONNECTIONPOINTS FAR* ppEnum);
  36. };
  37. /////////////////////////////////////////////////////////////////////////////
  38. #endif //__CVDENUMCONNECTIONPOINTS__