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.

42 lines
1.0 KiB

  1. /*
  2. * EnumCP.hxx
  3. *
  4. * CEnumConnectionPoints - class to implement IEnumConnectionPoints
  5. *
  6. * Copyright (C) 2001 Microsoft Corporation. All rights reserved.
  7. *
  8. */
  9. #ifndef ENUMCP_HXX_INCLUDED
  10. #define ENUMCP_HXX_INCLUDED
  11. #include <ocidl.h> //to include IEnumConnectionPoints declarration
  12. class CEnumConnectionPoints : public IEnumConnectionPoints
  13. {
  14. ULONG m_ulRefCount;
  15. DWORD m_dwCurrentIndex;
  16. IConnectionPoint* m_pCP;
  17. public:
  18. CEnumConnectionPoints(IConnectionPoint* pCP, DWORD cCurPos = 0);
  19. ~CEnumConnectionPoints();
  20. //
  21. // IUnknown methods.
  22. //
  23. STDMETHOD(QueryInterface)(REFIID riid, void ** ppvObject);
  24. STDMETHOD_(ULONG, AddRef)();
  25. STDMETHOD_(ULONG, Release)();
  26. //
  27. // IEnumConnectionPoints methods.
  28. //
  29. STDMETHOD(Next)(
  30. ULONG cConnections,
  31. IConnectionPoint **rgpcn,
  32. ULONG *pcFetched);
  33. STDMETHOD(Skip)(ULONG cConnections);
  34. STDMETHOD(Reset)();
  35. STDMETHOD(Clone)(IEnumConnectionPoints** ppEnum);
  36. };
  37. #endif//ENUMCP_HXX_INCLUDED