ReactOS 0.4.15-dev-7842-g558ab78
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 Next ([in] ULONG cConnections, [out, size_is(cConnections), length_is(*pcFetched)] LPCONNECTIONPOINT *ppCP, [out] ULONG *pcFetched)
 
HRESULT RemoteNext ([in] ULONG cConnections, [out, size_is(cConnections), length_is(*pcFetched)] LPCONNECTIONPOINT *ppCP, [out] ULONG *pcFetched)
 
HRESULT Skip ([in] ULONG cConnections)
 
HRESULT Reset ()
 
HRESULT Clone ([out] IEnumConnectionPoints **ppEnum)
 
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

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);
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)
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define TEXT(s)
Definition: k32.h:26
void dbgprintf(LPCTSTR fmt,...)
Definition: mstscax.cpp:42
IEnumConnectionPoints * HookIEnumConnectionPoints(IEnumConnectionPoints *p)
Definition: mstscax.cpp:634
HRESULT hr
Definition: shlfolder.c:183

◆ 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 }
HRESULT Next([in] ULONG cConnections, [out, size_is(cConnections), length_is(*pcFetched)] LPCONNECTIONPOINT *ppCP, [out] ULONG *pcFetched)
IConnectionPoint * HookIConnectionPoint(IConnectionPoint *p)
Definition: mstscax.cpp:639

◆ 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;
386 }
387
388 dbgprintf(TEXT("CEnumConnectionPoints::QueryInterface -> %08X, ppvObject = %p"), hr, *ppvObject);
389 return hr;
390 }
const GUID IID_IUnknown
#define NULL
Definition: types.h:112
REFIID riid
Definition: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
std::wstring UUIDToString(const UUID &uuid)
Definition: mstscax.cpp:110
const GUID IID_IEnumConnectionPoints
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
Definition: wincrypt.h:6082
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ 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 }
#define InterlockedDecrement
Definition: armddk.h:52
GLdouble n
Definition: glext.h:7729
long LONG
Definition: pedump.c:60

◆ 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 }

◆ 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)

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: