ReactOS 0.4.16-dev-340-g0540c21
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)
 
HRESULT EnumConnectionPoints ([out] IEnumConnectionPoints **ppEnum)
 
HRESULT FindConnectionPoint ([in] REFIID riid, [out] IConnectionPoint **ppCP)
 
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

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 }
HRESULT EnumConnectionPoints([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

◆ 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: atlbase.h:39
HRESULT FindConnectionPoint([in] REFIID riid, [out] IConnectionPoint **ppCP)
std::wstring UUIDToString(const UUID &uuid)
Definition: mstscax.cpp:110
IConnectionPoint * HookIConnectionPoint(IConnectionPoint *p)
Definition: mstscax.cpp:639

◆ 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;
314 }
315
316 dbgprintf(TEXT("CConnectionPointContainer::QueryInterface -> %08X, ppvObject = %p"), hr, *ppvObject);
317 return hr;
318 }
const GUID IID_IUnknown
#define NULL
Definition: types.h:112
#define S_OK
Definition: intsafe.h:52
const GUID IID_IConnectionPointContainer
_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}::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 }
#define InterlockedDecrement
Definition: armddk.h:52
GLdouble n
Definition: glext.h:7729
long LONG
Definition: pedump.c:60

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: