ReactOS 0.4.15-dev-7918-g2a2556c
anonymous_namespace{mstscax.cpp}::CEnumConnections Class Reference
Inheritance diagram for anonymous_namespace{mstscax.cpp}::CEnumConnections:
Collaboration diagram for anonymous_namespace{mstscax.cpp}::CEnumConnections:

Public Member Functions

 CEnumConnections (IEnumConnections *pIEnumConnections)
 
 ~CEnumConnections ()
 
virtual HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void **ppvObject)
 
virtual ULONG STDMETHODCALLTYPE AddRef (void)
 
virtual ULONG STDMETHODCALLTYPE Release (void)
 
virtual HRESULT STDMETHODCALLTYPE Next (ULONG cConnections, LPCONNECTDATA pCD, ULONG *pcFetched)
 
virtual HRESULT STDMETHODCALLTYPE Skip (ULONG cConnections)
 
virtual HRESULT STDMETHODCALLTYPE Reset (void)
 
virtual HRESULT STDMETHODCALLTYPE Clone (IEnumConnections **ppEnum)
 
- Public Member Functions inherited from IEnumConnections
HRESULT Next ([in] ULONG cConnections, [out, size_is(cConnections), length_is(*pcFetched)] LPCONNECTDATA rgcd, [out] ULONG *pcFetched)
 
HRESULT RemoteNext ([in] ULONG cConnections, [out, size_is(cConnections), length_is(*pcFetched)] LPCONNECTDATA rgcd, [out] ULONG *pcFetched)
 
HRESULT Skip ([in] ULONG cConnections)
 
HRESULT Reset ()
 
HRESULT Clone ([out] IEnumConnections **ppEnum)
 
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Private Attributes

LONG m_refCount
 
IEnumConnectionsm_IEnumConnections
 

Additional Inherited Members

- Public Types inherited from IEnumConnections
typedef IEnumConnectionsPENUMCONNECTIONS
 
typedef IEnumConnectionsLPENUMCONNECTIONS
 
typedef struct IEnumConnections::tagCONNECTDATA CONNECTDATA
 
typedef struct IEnumConnections::tagCONNECTDATAPCONNECTDATA
 
typedef struct IEnumConnections::tagCONNECTDATALPCONNECTDATA
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 

Detailed Description

Definition at line 545 of file mstscax.cpp.

Constructor & Destructor Documentation

◆ CEnumConnections()

anonymous_namespace{mstscax.cpp}::CEnumConnections::CEnumConnections ( IEnumConnections pIEnumConnections)
inline

Definition at line 552 of file mstscax.cpp.

◆ ~CEnumConnections()

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

Definition at line 557 of file mstscax.cpp.

ULONG Release()

Member Function Documentation

◆ AddRef()

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

Implements IUnknown.

Definition at line 577 of file mstscax.cpp.

578 {
580 }
#define InterlockedIncrement
Definition: armddk.h:53

◆ Clone()

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

Implements IEnumConnections.

Definition at line 616 of file mstscax.cpp.

617 {
618 dbgprintf(TEXT("CEnumConnections::Clone(%p)"), ppEnum);
620 dbgprintf(TEXT("CEnumConnections:: -> %08X, pEnum"), hr, *ppEnum);
621
622 if(SUCCEEDED(hr))
623 *ppEnum = HookIEnumConnections(*ppEnum);
624
625 return hr;
626 }
HRESULT Clone([out] IEnumConnections **ppEnum)
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define TEXT(s)
Definition: k32.h:26
void dbgprintf(LPCTSTR fmt,...)
Definition: mstscax.cpp:42
IEnumConnections * HookIEnumConnections(IEnumConnections *p)
Definition: mstscax.cpp:644
HRESULT hr
Definition: shlfolder.c:183

◆ Next()

virtual HRESULT STDMETHODCALLTYPE anonymous_namespace{mstscax.cpp}::CEnumConnections::Next ( ULONG  cConnections,
LPCONNECTDATA  pCD,
ULONG pcFetched 
)
inlinevirtual

Implements IEnumConnections.

Definition at line 592 of file mstscax.cpp.

593 {
594 dbgprintf(TEXT("CEnumConnections::Next(%lu, %p, %p)"), cConnections, pCD, pcFetched);
595 HRESULT hr = m_IEnumConnections->Next(cConnections, pCD, pcFetched);
596 dbgprintf(TEXT("CEnumConnections:: -> %08X, CD = { pUnk = %p, dwCookie = %lu }, cFetched = %lu"), hr, pCD->pUnk, pCD->dwCookie, *pcFetched);
597 return hr;
598 }
HRESULT Next([in] ULONG cConnections, [out, size_is(cConnections), length_is(*pcFetched)] LPCONNECTDATA rgcd, [out] ULONG *pcFetched)

◆ QueryInterface()

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

Implements IUnknown.

Definition at line 559 of file mstscax.cpp.

560 {
561 HRESULT hr = S_OK;
562
563 dbgprintf(TEXT("CEnumConnections::QueryInterface(%ls, %p)"), UUIDToString(riid).c_str(), ppvObject);
564
566 *ppvObject = this;
567 else
568 {
569 *ppvObject = NULL;
571 }
572
573 dbgprintf(TEXT("CEnumConnections::QueryInterface -> %08X, ppvObject = %p"), hr, *ppvObject);
574 return hr;
575 }
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_IEnumConnections
_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}::CEnumConnections::Release ( void  )
inlinevirtual

Implements IUnknown.

Definition at line 582 of file mstscax.cpp.

583 {
585
586 if(n == 0)
587 delete this;
588
589 return n;
590 }
#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}::CEnumConnections::Reset ( void  )
inlinevirtual

Implements IEnumConnections.

Definition at line 608 of file mstscax.cpp.

609 {
610 dbgprintf(TEXT("CEnumConnections::Reset()"));
612 dbgprintf(TEXT("CEnumConnections:: -> %08X"), hr);
613 return hr;
614 }

◆ Skip()

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

Implements IEnumConnections.

Definition at line 600 of file mstscax.cpp.

601 {
602 dbgprintf(TEXT("CEnumConnections::Skip(%lu)"), cConnections);
603 HRESULT hr = m_IEnumConnections->Skip(cConnections);
604 dbgprintf(TEXT("CEnumConnections:: -> %08X"), hr);
605 return hr;
606 }
HRESULT Skip([in] ULONG cConnections)

Member Data Documentation

◆ m_IEnumConnections

IEnumConnections* anonymous_namespace{mstscax.cpp}::CEnumConnections::m_IEnumConnections
private

Definition at line 549 of file mstscax.cpp.

◆ m_refCount

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

Definition at line 548 of file mstscax.cpp.


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