ReactOS  0.4.12-dev-43-g63b00d8
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 RemoteNext ([in] ULONG cConnections, [out, size_is(cConnections), length_is(*pcFetched)] LPCONNECTDATA rgcd, [out] ULONG *pcFetched)
 

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.

552  :
553  m_refCount(1),
554  m_IEnumConnections(pIEnumConnections)
555  { }

◆ ~CEnumConnections()

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

Definition at line 557 of file mstscax.cpp.

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);
619  HRESULT hr = m_IEnumConnections->Clone(ppEnum);
620  dbgprintf(TEXT("CEnumConnections:: -> %08X, pEnum"), hr, *ppEnum);
621 
622  if(SUCCEEDED(hr))
623  *ppEnum = HookIEnumConnections(*ppEnum);
624 
625  return hr;
626  }
IEnumConnections * HookIEnumConnections(IEnumConnections *p)
Definition: mstscax.cpp:644
LONG HRESULT
Definition: typedefs.h:77
HRESULT Clone([out] IEnumConnections **ppEnum)
#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}::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  }
LONG HRESULT
Definition: typedefs.h:77
HRESULT Next([in] ULONG cConnections, [out, size_is(cConnections), length_is(*pcFetched)] LPCONNECTDATA rgcd, [out] ULONG *pcFetched)
#define TEXT(s)
Definition: k32.h:26
void dbgprintf(LPCTSTR fmt,...)
Definition: mstscax.cpp:42

◆ 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;
570  hr = E_NOINTERFACE;
571  }
572 
573  dbgprintf(TEXT("CEnumConnections::QueryInterface -> %08X, ppvObject = %p"), hr, *ppvObject);
574  return hr;
575  }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
const GUID IID_IEnumConnections
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}::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  }
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}::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  }
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}::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  }
LONG HRESULT
Definition: typedefs.h:77
#define TEXT(s)
Definition: k32.h:26
HRESULT Skip([in] ULONG cConnections)
void dbgprintf(LPCTSTR fmt,...)
Definition: mstscax.cpp:42

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: