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.
 
 
 
 
 
 

43 lines
1.0 KiB

/*
* EnumCP.hxx
*
* CEnumConnectionPoints - class to implement IEnumConnectionPoints
*
* Copyright (C) 2001 Microsoft Corporation. All rights reserved.
*
*/
#ifndef ENUMCP_HXX_INCLUDED
#define ENUMCP_HXX_INCLUDED
#include <ocidl.h> //to include IEnumConnectionPoints declarration
class CEnumConnectionPoints : public IEnumConnectionPoints
{
ULONG m_ulRefCount;
DWORD m_dwCurrentIndex;
IConnectionPoint* m_pCP;
public:
CEnumConnectionPoints(IConnectionPoint* pCP, DWORD cCurPos = 0);
~CEnumConnectionPoints();
//
// IUnknown methods.
//
STDMETHOD(QueryInterface)(REFIID riid, void ** ppvObject);
STDMETHOD_(ULONG, AddRef)();
STDMETHOD_(ULONG, Release)();
//
// IEnumConnectionPoints methods.
//
STDMETHOD(Next)(
ULONG cConnections,
IConnectionPoint **rgpcn,
ULONG *pcFetched);
STDMETHOD(Skip)(ULONG cConnections);
STDMETHOD(Reset)();
STDMETHOD(Clone)(IEnumConnectionPoints** ppEnum);
};
#endif//ENUMCP_HXX_INCLUDED