ReactOS  0.4.15-dev-3303-g1ade494
CEnumTuningSpaces Class Reference
Inheritance diagram for CEnumTuningSpaces:
Collaboration diagram for CEnumTuningSpaces:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID InterfaceId, PVOID *Interface)
 
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 
HRESULT STDMETHODCALLTYPE Next (ULONG celt, ITuningSpace **rgelt, ULONG *pceltFetched)
 
HRESULT STDMETHODCALLTYPE Skip (ULONG celt)
 
HRESULT STDMETHODCALLTYPE Reset ()
 
HRESULT STDMETHODCALLTYPE Clone (IEnumTuningSpaces **ppEnum)
 
 CEnumTuningSpaces ()
 
virtual ~CEnumTuningSpaces ()
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Protected Attributes

LONG m_Ref
 

Additional Inherited Members

- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 

Detailed Description

Definition at line 11 of file enumtuningspaces.cpp.

Constructor & Destructor Documentation

◆ CEnumTuningSpaces()

CEnumTuningSpaces::CEnumTuningSpaces ( )
inline

Definition at line 38 of file enumtuningspaces.cpp.

38 : m_Ref(0){};

◆ ~CEnumTuningSpaces()

virtual CEnumTuningSpaces::~CEnumTuningSpaces ( )
inlinevirtual

Definition at line 40 of file enumtuningspaces.cpp.

40 {};

Member Function Documentation

◆ Clone()

HRESULT STDMETHODCALLTYPE CEnumTuningSpaces::Clone ( IEnumTuningSpaces **  ppEnum)

Implements IEnumTuningSpaces.

Definition at line 106 of file enumtuningspaces.cpp.

107 {
108  OutputDebugStringW(L"CEnumTuningSpaces::Clone : NotImplemented\n");
109  return E_NOTIMPL;
110 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Next()

HRESULT STDMETHODCALLTYPE CEnumTuningSpaces::Next ( ULONG  celt,
ITuningSpace **  rgelt,
ULONG pceltFetched 
)

Implements IEnumTuningSpaces.

Definition at line 81 of file enumtuningspaces.cpp.

82 {
83  OutputDebugStringW(L"CEnumTuningSpaces::Next : stub\n");
84  return CTuningSpace_fnConstructor(NULL, IID_ITuningSpace, (void**)rgelt);
85 
86 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define NULL
Definition: types.h:112
HRESULT WINAPI CTuningSpace_fnConstructor(IUnknown *pUnknown, REFIID riid, LPVOID *ppv)

◆ QueryInterface()

HRESULT STDMETHODCALLTYPE CEnumTuningSpaces::QueryInterface ( REFIID  InterfaceId,
PVOID Interface 
)

Definition at line 48 of file enumtuningspaces.cpp.

51 {
52  if (IsEqualGUID(refiid, IID_IUnknown))
53  {
54  *Output = PVOID(this);
55  reinterpret_cast<IUnknown*>(*Output)->AddRef();
56  return NOERROR;
57  }
58 
59  if (IsEqualGUID(refiid, IID_IEnumTuningSpaces))
60  {
61  *Output = (IEnumTuningSpaces*)this;
62  reinterpret_cast<IEnumTuningSpaces*>(*Output)->AddRef();
63  return NOERROR;
64  }
65 
68  StringFromCLSID(refiid, &lpstr);
69  swprintf(Buffer, L"CEnumTuningSpaces::QueryInterface: NoInterface for %s\n", lpstr);
72 
73  return E_NOINTERFACE;
74 }
#define E_NOINTERFACE
Definition: winerror.h:2364
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:442
#define NOERROR
Definition: winerror.h:2354
#define swprintf
Definition: precomp.h:40
static LPOLESTR
Definition: stg_prop.c:27
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
Definition: bufpool.h:45
void * PVOID
Definition: retypes.h:9
__wchar_t WCHAR
Definition: xmlstorage.h:180
const GUID IID_IUnknown
#define MAX_PATH
Definition: compat.h:34
static const WCHAR L[]
Definition: oid.c:1250
Definition: arc.h:85
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112
static LPCSTR lpstr
Definition: font.c:51
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412

Referenced by CEnumTuningSpaces_fnConstructor().

◆ Reset()

HRESULT STDMETHODCALLTYPE CEnumTuningSpaces::Reset ( void  )

Implements IEnumTuningSpaces.

Definition at line 98 of file enumtuningspaces.cpp.

99 {
100  OutputDebugStringW(L"CEnumTuningSpaces::Reset : NotImplemented\n");
101  return E_NOTIMPL;
102 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Skip()

HRESULT STDMETHODCALLTYPE CEnumTuningSpaces::Skip ( ULONG  celt)

Implements IEnumTuningSpaces.

Definition at line 90 of file enumtuningspaces.cpp.

91 {
92  OutputDebugStringW(L"CEnumTuningSpaces::Skip : NotImplemented\n");
93  return E_NOTIMPL;
94 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ STDMETHODIMP_() [1/2]

CEnumTuningSpaces::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 16 of file enumtuningspaces.cpp.

17  {
19  return m_Ref;
20  }
#define InterlockedIncrement
Definition: armddk.h:53

◆ STDMETHODIMP_() [2/2]

CEnumTuningSpaces::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 21 of file enumtuningspaces.cpp.

22  {
24  if (!m_Ref)
25  {
26  //delete this;
27  return 0;
28  }
29  return m_Ref;
30  }
#define InterlockedDecrement
Definition: armddk.h:52

Member Data Documentation

◆ m_Ref

LONG CEnumTuningSpaces::m_Ref
protected

Definition at line 40 of file enumtuningspaces.cpp.

Referenced by STDMETHODIMP_().


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