ReactOS  0.4.11-dev-946-g431643b
anonymous_namespace{mstscax.cpp}::CConnectionPointContainer Class Reference
Inheritance diagram for anonymous_namespace{mstscax.cpp}::CConnectionPointContainer:
Collaboration diagram for anonymous_namespace{mstscax.cpp}::CConnectionPointContainer:

Public Member Functions

 CConnectionPointContainer (IConnectionPointContainer *pIConnectionPointContainer)
 
 ~CConnectionPointContainer ()
 
virtual HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void **ppvObject)
 
virtual ULONG STDMETHODCALLTYPE AddRef (void)
 
virtual ULONG STDMETHODCALLTYPE Release (void)
 
virtual HRESULT STDMETHODCALLTYPE EnumConnectionPoints (IEnumConnectionPoints **ppEnum)
 
virtual HRESULT STDMETHODCALLTYPE FindConnectionPoint (REFIID riid, IConnectionPoint **ppCP)
 

Private Attributes

LONG m_refCount
 
IConnectionPointContainerm_IConnectionPointContainer
 

Additional Inherited Members

- Public Types inherited from IConnectionPointContainer
typedef IConnectionPointContainerPCONNECTIONPOINTCONTAINER
 
typedef IConnectionPointContainerLPCONNECTIONPOINTCONTAINER
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 

Detailed Description

Definition at line 288 of file mstscax.cpp.

Constructor & Destructor Documentation

◆ CConnectionPointContainer()

anonymous_namespace{mstscax.cpp}::CConnectionPointContainer::CConnectionPointContainer ( IConnectionPointContainer pIConnectionPointContainer)
inline

Definition at line 295 of file mstscax.cpp.

295  :
296  m_refCount(1),
297  m_IConnectionPointContainer(pIConnectionPointContainer)
298  { }

◆ ~CConnectionPointContainer()

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

Definition at line 300 of file mstscax.cpp.

Member Function Documentation

◆ AddRef()

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

Implements IUnknown.

Definition at line 320 of file mstscax.cpp.

321  {
323  }
#define InterlockedIncrement
Definition: armddk.h:53

◆ EnumConnectionPoints()

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

Implements IConnectionPointContainer.

Definition at line 335 of file mstscax.cpp.

336  {
337  dbgprintf(TEXT("CConnectionPointContainer::EnumConnectionPoints(%p)"), ppEnum);
339  dbgprintf(TEXT("CConnectionPointContainer::EnumConnectionPoints -> %08X, pEnum = %p"), hr, *ppEnum);
340 
341  if(SUCCEEDED(hr))
342  *ppEnum = HookIEnumConnectionPoints(*ppEnum);
343 
344  return hr;
345  }
LONG HRESULT
Definition: typedefs.h:77
HRESULT EnumConnectionPoints([out] IEnumConnectionPoints **ppEnum)
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

◆ FindConnectionPoint()

virtual HRESULT STDMETHODCALLTYPE anonymous_namespace{mstscax.cpp}::CConnectionPointContainer::FindConnectionPoint ( REFIID  riid,
IConnectionPoint **  ppCP 
)
inlinevirtual

Implements IConnectionPointContainer.

Definition at line 347 of file mstscax.cpp.

348  {
349  dbgprintf(TEXT("CConnectionPointContainer::FindConnectionPoint(%ls, %p)"), UUIDToString(riid).c_str(), ppCP);
351  dbgprintf(TEXT("CConnectionPointContainer::FindConnectionPoint -> %08X, pCP = %p"), hr, *ppCP);
352 
353  if(SUCCEEDED(hr))
354  *ppCP = HookIConnectionPoint(*ppCP);
355 
356  return hr;
357  }
REFIID riid
Definition: precomp.h:44
IConnectionPoint * HookIConnectionPoint(IConnectionPoint *p)
Definition: mstscax.cpp:639
std::wstring UUIDToString(const UUID &uuid)
Definition: mstscax.cpp:110
LONG HRESULT
Definition: typedefs.h:77
HRESULT FindConnectionPoint([in] REFIID riid, [out] IConnectionPoint **ppCP)
#define TEXT(s)
Definition: k32.h:26
void dbgprintf(LPCTSTR fmt,...)
Definition: mstscax.cpp:42
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ QueryInterface()

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

Implements IUnknown.

Definition at line 302 of file mstscax.cpp.

303  {
304  HRESULT hr = S_OK;
305 
306  dbgprintf(TEXT("CConnectionPointContainer::QueryInterface(%ls, %p)"), UUIDToString(riid).c_str(), ppvObject);
307 
309  *ppvObject = this;
310  else
311  {
312  *ppvObject = NULL;
313  hr = E_NOINTERFACE;
314  }
315 
316  dbgprintf(TEXT("CConnectionPointContainer::QueryInterface -> %08X, ppvObject = %p"), hr, *ppvObject);
317  return hr;
318  }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
const GUID IID_IConnectionPointContainer
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
#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}::CConnectionPointContainer::Release ( void  )
inlinevirtual

Implements IUnknown.

Definition at line 325 of file mstscax.cpp.

326  {
328 
329  if(n == 0)
330  delete this;
331 
332  return n;
333  }
GLuint n
Definition: s_context.h:57
long LONG
Definition: pedump.c:60
#define InterlockedDecrement
Definition: armddk.h:52

Member Data Documentation

◆ m_IConnectionPointContainer

IConnectionPointContainer* anonymous_namespace{mstscax.cpp}::CConnectionPointContainer::m_IConnectionPointContainer
private

Definition at line 292 of file mstscax.cpp.

◆ m_refCount

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

Definition at line 291 of file mstscax.cpp.


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