ReactOS 0.4.15-dev-7924-g5949c20
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 ()
 
HRESULT Next ([in] ULONG celt, [in, out]ITuningSpace **rgelt, [out] ULONG *pceltFetched)
 
HRESULT Skip ([in] ULONG celt)
 
HRESULT Reset ()
 
HRESULT Clone ([out] IEnumTuningSpaces **ppEnum)
 
- 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}
#define E_NOTIMPL
Definition: ddrawi.h:99
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define L(x)
Definition: ntvdm.h:50

◆ 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}
#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}
const GUID IID_IUnknown
Definition: bufpool.h:45
#define MAX_PATH
Definition: compat.h:34
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412
#define swprintf
Definition: precomp.h:40
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:442
ULONG AddRef()
static LPCSTR lpstr
Definition: font.c:51
static LPOLESTR
Definition: stg_prop.c:27
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
@ Output
Definition: arc.h:85
void * PVOID
Definition: typedefs.h:50
#define E_NOINTERFACE
Definition: winerror.h:2364
#define NOERROR
Definition: winerror.h:2354
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by CEnumTuningSpaces_fnConstructor().

◆ Reset()

HRESULT STDMETHODCALLTYPE CEnumTuningSpaces::Reset ( )

Implements IEnumTuningSpaces.

Definition at line 98 of file enumtuningspaces.cpp.

99{
100 OutputDebugStringW(L"CEnumTuningSpaces::Reset : NotImplemented\n");
101 return E_NOTIMPL;
102}

◆ 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}

◆ 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 43 of file enumtuningspaces.cpp.

Referenced by STDMETHODIMP_().


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