ReactOS  0.4.12-dev-102-g4b7f1e0
anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints Class Reference
Inheritance diagram for anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints:
Collaboration diagram for anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints:

Public Member Functions

 CEnumConnectionPoints (IEnumConnectionPoints *pIEnumConnectionPoints)
 
 ~CEnumConnectionPoints ()
 
virtual HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void **ppvObject)
 
virtual ULONG STDMETHODCALLTYPE AddRef (void)
 
virtual ULONG STDMETHODCALLTYPE Release (void)
 
virtual HRESULT STDMETHODCALLTYPE Next (ULONG cConnections, LPCONNECTIONPOINT *ppCP, ULONG *pcFetched)
 
virtual HRESULT STDMETHODCALLTYPE Skip (ULONG cConnections)
 
virtual HRESULT STDMETHODCALLTYPE Reset (void)
 
virtual HRESULT STDMETHODCALLTYPE Clone (IEnumConnectionPoints **ppEnum)
 
- Public Member Functions inherited from IEnumConnectionPoints
HRESULT RemoteNext ([in] ULONG cConnections, [out, size_is(cConnections), length_is(*pcFetched)] LPCONNECTIONPOINT *ppCP, [out] ULONG *pcFetched)
 

Private Attributes

LONG m_refCount
 
IEnumConnectionPointsm_IEnumConnectionPoints
 

Additional Inherited Members

- Public Types inherited from IEnumConnectionPoints
typedef IEnumConnectionPointsPENUMCONNECTIONPOINTS
 
typedef IEnumConnectionPointsLPENUMCONNECTIONPOINTS
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 

Detailed Description

Definition at line 360 of file mstscax.cpp.

Constructor & Destructor Documentation

◆ CEnumConnectionPoints()

anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints::CEnumConnectionPoints ( IEnumConnectionPoints pIEnumConnectionPoints)
inline

Definition at line 367 of file mstscax.cpp.

367  :
368  m_refCount(1),
369  m_IEnumConnectionPoints(pIEnumConnectionPoints)
370  { }

◆ ~CEnumConnectionPoints()

anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints::~CEnumConnectionPoints ( )
inline

Definition at line 372 of file mstscax.cpp.

Member Function Documentation

◆ AddRef()

virtual ULONG STDMETHODCALLTYPE anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints::AddRef ( void  )
inlinevirtual

Implements IUnknown.

Definition at line 392 of file mstscax.cpp.

393  {
395  }
#define InterlockedIncrement
Definition: armddk.h:53

◆ Clone()

virtual HRESULT STDMETHODCALLTYPE anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints::Clone ( IEnumConnectionPoints **  ppEnum)
inlinevirtual

Implements IEnumConnectionPoints.

Definition at line 435 of file mstscax.cpp.

436  {
437  dbgprintf(TEXT("CEnumConnectionPoints::Clone(%p)"), ppEnum);
438  HRESULT hr = m_IEnumConnectionPoints->Clone(ppEnum);
439  dbgprintf(TEXT("CEnumConnectionPoints:: -> %08X, pEnum"), hr, *ppEnum);
440 
441  if(SUCCEEDED(hr))
442  *ppEnum = HookIEnumConnectionPoints(*ppEnum);
443 
444  return hr;
445  }
HRESULT Clone([out] IEnumConnectionPoints **ppEnum)
LONG HRESULT
Definition: typedefs.h:77
IEnumConnectionPoints * HookIEnumConnectionPoints(IEnumConnectionPoints *p)
Definition: mstscax.cpp:634
#define TEXT(s)
Definition: k32.h:26
void dbgprintf(LPCTSTR fmt,...)
Definition: mstscax.cpp:42
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ Next()

virtual HRESULT STDMETHODCALLTYPE anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints::Next ( ULONG  cConnections,
LPCONNECTIONPOINT *  ppCP,
ULONG pcFetched 
)
inlinevirtual

Implements IEnumConnectionPoints.

Definition at line 407 of file mstscax.cpp.

408  {
409  dbgprintf(TEXT("CEnumConnectionPoints::Next(%lu, %p, %p)"), cConnections, ppCP, pcFetched);
410  HRESULT hr = m_IEnumConnectionPoints->Next(cConnections, ppCP, pcFetched);
411  dbgprintf(TEXT("CEnumConnectionPoints:: -> %08X, pCP = %p, cFetched = %lu"), hr, *ppCP, *pcFetched);
412 
413  if(SUCCEEDED(hr))
414  *ppCP = HookIConnectionPoint(*ppCP);
415 
416  return hr;
417  }
IConnectionPoint * HookIConnectionPoint(IConnectionPoint *p)
Definition: mstscax.cpp:639
LONG HRESULT
Definition: typedefs.h:77
#define TEXT(s)
Definition: k32.h:26
void dbgprintf(LPCTSTR fmt,...)
Definition: mstscax.cpp:42
HRESULT Next([in] ULONG cConnections, [out, size_is(cConnections), length_is(*pcFetched)] LPCONNECTIONPOINT *ppCP, [out] ULONG *pcFetched)
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ QueryInterface()

virtual HRESULT STDMETHODCALLTYPE anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints::QueryInterface ( REFIID  riid,
void **  ppvObject 
)
inlinevirtual

Implements IUnknown.

Definition at line 374 of file mstscax.cpp.

375  {
376  HRESULT hr = S_OK;
377 
378  dbgprintf(TEXT("CEnumConnectionPoints::QueryInterface(%ls, %p)"), UUIDToString(riid).c_str(), ppvObject);
379 
381  *ppvObject = this;
382  else
383  {
384  *ppvObject = NULL;
385  hr = E_NOINTERFACE;
386  }
387 
388  dbgprintf(TEXT("CEnumConnectionPoints::QueryInterface -> %08X, ppvObject = %p"), hr, *ppvObject);
389  return hr;
390  }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
smooth NULL
Definition: ftsmooth.c:416
std::wstring UUIDToString(const UUID &uuid)
Definition: mstscax.cpp:110
LONG HRESULT
Definition: typedefs.h:77
const GUID IID_IUnknown
const GUID IID_IEnumConnectionPoints
#define S_OK
Definition: intsafe.h:59
#define TEXT(s)
Definition: k32.h:26
void dbgprintf(LPCTSTR fmt,...)
Definition: mstscax.cpp:42

◆ Release()

virtual ULONG STDMETHODCALLTYPE anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints::Release ( void  )
inlinevirtual

Implements IUnknown.

Definition at line 397 of file mstscax.cpp.

398  {
400 
401  if(n == 0)
402  delete this;
403 
404  return n;
405  }
GLuint n
Definition: s_context.h:57
long LONG
Definition: pedump.c:60
#define InterlockedDecrement
Definition: armddk.h:52

◆ Reset()

virtual HRESULT STDMETHODCALLTYPE anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints::Reset ( void  )
inlinevirtual

Implements IEnumConnectionPoints.

Definition at line 427 of file mstscax.cpp.

428  {
429  dbgprintf(TEXT("CEnumConnectionPoints::Reset()"));
431  dbgprintf(TEXT("CEnumConnectionPoints:: -> %08X"), hr);
432  return hr;
433  }
LONG HRESULT
Definition: typedefs.h:77
#define TEXT(s)
Definition: k32.h:26
void dbgprintf(LPCTSTR fmt,...)
Definition: mstscax.cpp:42

◆ Skip()

virtual HRESULT STDMETHODCALLTYPE anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints::Skip ( ULONG  cConnections)
inlinevirtual

Implements IEnumConnectionPoints.

Definition at line 419 of file mstscax.cpp.

420  {
421  dbgprintf(TEXT("CEnumConnectionPoints::Skip(%lu)"), cConnections);
422  HRESULT hr = m_IEnumConnectionPoints->Skip(cConnections);
423  dbgprintf(TEXT("CEnumConnectionPoints:: -> %08X"), hr);
424  return hr;
425  }
HRESULT Skip([in] ULONG cConnections)
LONG HRESULT
Definition: typedefs.h:77
#define TEXT(s)
Definition: k32.h:26
void dbgprintf(LPCTSTR fmt,...)
Definition: mstscax.cpp:42

Member Data Documentation

◆ m_IEnumConnectionPoints

IEnumConnectionPoints* anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints::m_IEnumConnectionPoints
private

Definition at line 364 of file mstscax.cpp.

◆ m_refCount

LONG anonymous_namespace{mstscax.cpp}::CEnumConnectionPoints::m_refCount
private

Definition at line 363 of file mstscax.cpp.


The documentation for this class was generated from the following file: