ReactOS 0.4.16-dev-136-g52192f1
CTuningSpaceContainer Class Reference
Inheritance diagram for CTuningSpaceContainer:
Collaboration diagram for CTuningSpaceContainer:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID InterfaceId, PVOID *Interface)
 
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 
HRESULT STDMETHODCALLTYPE GetTypeInfoCount (UINT *pctinfo)
 
HRESULT STDMETHODCALLTYPE GetTypeInfo (UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
HRESULT STDMETHODCALLTYPE GetIDsOfNames (REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
HRESULT STDMETHODCALLTYPE Invoke (DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
HRESULT STDMETHODCALLTYPE get_Count (long *Count)
 
HRESULT STDMETHODCALLTYPE get__NewEnum (IEnumVARIANT **NewEnum)
 
HRESULT STDMETHODCALLTYPE get_Item (VARIANT varIndex, ITuningSpace **TuningSpace)
 
HRESULT STDMETHODCALLTYPE put_Item (VARIANT varIndex, ITuningSpace *TuningSpace)
 
HRESULT STDMETHODCALLTYPE TuningSpacesForCLSID (BSTR SpaceCLSID, ITuningSpaces **NewColl)
 
HRESULT STDMETHODCALLTYPE _TuningSpacesForCLSID (REFCLSID SpaceCLSID, ITuningSpaces **NewColl)
 
HRESULT STDMETHODCALLTYPE TuningSpacesForName (BSTR Name, ITuningSpaces **NewColl)
 
HRESULT STDMETHODCALLTYPE FindID (ITuningSpace *TuningSpace, long *ID)
 
HRESULT STDMETHODCALLTYPE Add (ITuningSpace *TuningSpace, VARIANT *NewIndex)
 
HRESULT STDMETHODCALLTYPE get_EnumTuningSpaces (IEnumTuningSpaces **ppEnum)
 
HRESULT STDMETHODCALLTYPE Remove (VARIANT Index)
 
HRESULT STDMETHODCALLTYPE get_MaxCount (long *MaxCount)
 
HRESULT STDMETHODCALLTYPE put_MaxCount (long MaxCount)
 
 CTuningSpaceContainer ()
 
virtual ~CTuningSpaceContainer ()
 
HRESULT get_Count ([out] long *Count)
 
HRESULT get__NewEnum ([out] IEnumVARIANT **NewEnum)
 
HRESULT get_Item ([in] VARIANT varIndex, [out] ITuningSpace **TuningSpace)
 
HRESULT put_Item ([in] VARIANT varIndex, [in] ITuningSpace *TuningSpace)
 
HRESULT TuningSpacesForCLSID ([in] BSTR SpaceCLSID, [out] ITuningSpaces **NewColl)
 
HRESULT _TuningSpacesForCLSID ([in] REFCLSID SpaceCLSID, [out] ITuningSpaces **NewColl)
 
HRESULT TuningSpacesForName ([in] BSTR Name, [out] ITuningSpaces **NewColl)
 
HRESULT FindID ([in] ITuningSpace *TuningSpace, [out] long *ID)
 
HRESULT Add ([in] ITuningSpace *TuningSpace, [out] VARIANT *NewIndex)
 
HRESULT get_EnumTuningSpaces ([out] IEnumTuningSpaces **ppEnum)
 
HRESULT Remove ([in] VARIANT Index)
 
HRESULT get_MaxCount ([out] long *MaxCount)
 
HRESULT put_MaxCount ([in] long MaxCount)
 
- Public Member Functions inherited from IDispatch
HRESULT GetTypeInfoCount ([out] UINT *pctinfo)
 
HRESULT GetTypeInfo ([in] UINT iTInfo, [in] LCID lcid, [out] ITypeInfo **ppTInfo)
 
HRESULT GetIDsOfNames ([in] REFIID riid, [in, size_is(cNames)] LPOLESTR *rgszNames, [in] UINT cNames, [in] LCID lcid, [out, size_is(cNames)] DISPID *rgDispId)
 
HRESULT Invoke ([in] DISPID dispIdMember, [in] REFIID riid, [in] LCID lcid, [in] WORD wFlags, [in, out] DISPPARAMS *pDispParams, [out] VARIANT *pVarResult, [out] EXCEPINFO *pExcepInfo, [out] UINT *puArgErr)
 
HRESULT RemoteInvoke ([in] DISPID dispIdMember, [in] REFIID riid, [in] LCID lcid, [in] DWORD dwFlags, [in] DISPPARAMS *pDispParams, [out] VARIANT *pVarResult, [out] EXCEPINFO *pExcepInfo, [out] UINT *pArgErr, [in] UINT cVarRef, [in, size_is(cVarRef)] UINT *rgVarRefIdx, [in, out, size_is(cVarRef)] VARIANTARG *rgVarRef)
 
- 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 IDispatch
typedef IDispatchLPDISPATCH
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Public Attributes inherited from IDispatch
const DISPID DISPID_UNKNOWN = -1
 
const DISPID DISPID_VALUE = 0
 
const DISPID DISPID_PROPERTYPUT = -3
 
const DISPID DISPID_NEWENUM = -4
 
const DISPID DISPID_EVALUATE = -5
 
const DISPID DISPID_CONSTRUCTOR = -6
 
const DISPID DISPID_DESTRUCTOR = -7
 
const DISPID DISPID_COLLECT = -8
 

Detailed Description

Definition at line 13 of file tuningspace_container.cpp.

Constructor & Destructor Documentation

◆ CTuningSpaceContainer()

CTuningSpaceContainer::CTuningSpaceContainer ( )
inline

Definition at line 57 of file tuningspace_container.cpp.

◆ ~CTuningSpaceContainer()

virtual CTuningSpaceContainer::~CTuningSpaceContainer ( )
inlinevirtual

Definition at line 59 of file tuningspace_container.cpp.

59{};

Member Function Documentation

◆ _TuningSpacesForCLSID()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::_TuningSpacesForCLSID ( REFCLSID  SpaceCLSID,
ITuningSpaces **  NewColl 
)

Implements ITuningSpaceContainer.

Definition at line 178 of file tuningspace_container.cpp.

179{
180 OutputDebugStringW(L"CTuningSpaceContainer::_TuningSpacesForCLSID : NotImplemented\n");
181 return E_NOTIMPL;
182}
#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

◆ Add()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::Add ( ITuningSpace TuningSpace,
VARIANT NewIndex 
)

Implements ITuningSpaceContainer.

Definition at line 202 of file tuningspace_container.cpp.

203{
204 OutputDebugStringW(L"CTuningSpaceContainer::Add : stub\n");
205 TuningSpace->AddRef();
206 NewIndex->vt = VT_BSTR;
208 return TuningSpace->get_FriendlyName(&NewIndex->bstrVal);
209}
#define InterlockedIncrement
Definition: armddk.h:53
@ VT_BSTR
Definition: compat.h:2303
HRESULT get_FriendlyName([out] BSTR *Name)
ULONG AddRef()
BSTR bstrVal
Definition: compat.h:2399
VARTYPE vt
Definition: compat.h:2381

◆ FindID()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::FindID ( ITuningSpace TuningSpace,
long ID 
)

Implements ITuningSpaceContainer.

Definition at line 194 of file tuningspace_container.cpp.

195{
196 OutputDebugStringW(L"CTuningSpaceContainer::FindID : NotImplemented\n");
197 return E_NOTIMPL;
198}

◆ get__NewEnum()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::get__NewEnum ( IEnumVARIANT **  NewEnum)

Implements ITuningSpaceContainer.

Definition at line 143 of file tuningspace_container.cpp.

144{
145 OutputDebugStringW(L"CTuningSpaceContainer::get__NewEnum : NotImplemented\n");
146 return E_NOTIMPL;
147}

◆ get_Count()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::get_Count ( long Count)

Implements ITuningSpaceContainer.

Definition at line 136 of file tuningspace_container.cpp.

137{
138 OutputDebugStringW(L"CTuningSpaceContainer::get_Count : NotImplemented\n");
139 return E_NOTIMPL;
140}

◆ get_EnumTuningSpaces()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::get_EnumTuningSpaces ( IEnumTuningSpaces **  ppEnum)

Implements ITuningSpaceContainer.

Definition at line 212 of file tuningspace_container.cpp.

213{
214 OutputDebugStringW(L"CTuningSpaceContainer::get_EnumTuningSpaces : stub\n");
215 return CEnumTuningSpaces_fnConstructor(NULL, IID_IEnumTuningSpaces, (void**)ppEnum);
216}
#define NULL
Definition: types.h:112
HRESULT WINAPI CEnumTuningSpaces_fnConstructor(IUnknown *pUnknown, REFIID riid, LPVOID *ppv)

◆ get_Item()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::get_Item ( VARIANT  varIndex,
ITuningSpace **  TuningSpace 
)

Implements ITuningSpaceContainer.

Definition at line 151 of file tuningspace_container.cpp.

152{
153#ifdef MSVIDCTL_TRACE
154 WCHAR Buffer[100];
155 swprintf(Buffer, L"CTuningSpaceContainer::get_Item : type %x value %s stub\n", varIndex.vt, varIndex.bstrVal);
157#endif
158
159 return CTuningSpace_fnConstructor(NULL, IID_ITuningSpace, (void**)TuningSpace);
160}
Definition: bufpool.h:45
HRESULT WINAPI CTuningSpace_fnConstructor(IUnknown *pUnknown, REFIID riid, LPVOID *ppv)
#define swprintf
Definition: precomp.h:40
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ get_MaxCount()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::get_MaxCount ( long MaxCount)

Implements ITuningSpaceContainer.

Definition at line 228 of file tuningspace_container.cpp.

229{
230 OutputDebugStringW(L"CTuningSpaceContainer::get_MaxCount : NotImplemented\n");
231 return E_NOTIMPL;
232}

◆ GetIDsOfNames()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::GetIDsOfNames ( REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)

Implements IDispatch.

Definition at line 117 of file tuningspace_container.cpp.

118{
119 OutputDebugStringW(L"CTuningSpaceContainer::GetIDsOfNames : NotImplemented\n");
120 return E_NOTIMPL;
121}

◆ GetTypeInfo()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::GetTypeInfo ( UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)

Implements IDispatch.

Definition at line 110 of file tuningspace_container.cpp.

111{
112 OutputDebugStringW(L"CTuningSpaceContainer::GetTypeInfo : NotImplemented\n");
113 return E_NOTIMPL;
114}

◆ GetTypeInfoCount()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::GetTypeInfoCount ( UINT pctinfo)

Implements IDispatch.

Definition at line 102 of file tuningspace_container.cpp.

103{
104 OutputDebugStringW(L"CTuningSpaceContainer::GetTypeInfoCount : NotImplemented\n");
105 return E_NOTIMPL;
106}

◆ Invoke()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::Invoke ( DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)

Implements IDispatch.

Definition at line 124 of file tuningspace_container.cpp.

125{
126 OutputDebugStringW(L"CTuningSpaceContainer::Invoke : NotImplemented\n");
127 return E_NOTIMPL;
128}

◆ put_Item()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::put_Item ( VARIANT  varIndex,
ITuningSpace TuningSpace 
)

Implements ITuningSpaceContainer.

Definition at line 163 of file tuningspace_container.cpp.

164{
165 OutputDebugStringW(L"CTuningSpaceContainer::put_Item : NotImplemented\n");
166 return E_NOTIMPL;
167}

◆ put_MaxCount()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::put_MaxCount ( long  MaxCount)

Implements ITuningSpaceContainer.

Definition at line 236 of file tuningspace_container.cpp.

237{
238 OutputDebugStringW(L"CTuningSpaceContainer::put_MaxCount : NotImplemented\n");
239 return E_NOTIMPL;
240}

◆ QueryInterface()

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

Definition at line 68 of file tuningspace_container.cpp.

71{
72 if (IsEqualGUID(refiid, IID_IUnknown))
73 {
74 *Output = PVOID(this);
75 reinterpret_cast<IUnknown*>(*Output)->AddRef();
76 return NOERROR;
77 }
78
79 if (IsEqualGUID(refiid, IID_ITuningSpaceContainer))
80 {
82 reinterpret_cast<ITuningSpaceContainer*>(*Output)->AddRef();
83 return NOERROR;
84 }
85
88 StringFromCLSID(refiid, &lpstr);
89 swprintf(Buffer, L"CTuningSpaceContainer::QueryInterface: NoInterface for %s", lpstr);
92
93
94 return E_NOINTERFACE;
95}
const GUID IID_IUnknown
#define MAX_PATH
Definition: compat.h:34
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:442
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

Referenced by CTuningSpaceContainer_fnConstructor().

◆ Remove()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::Remove ( VARIANT  Index)

Implements ITuningSpaceContainer.

Definition at line 220 of file tuningspace_container.cpp.

221{
222 OutputDebugStringW(L"CTuningSpaceContainer::Remove: NotImplemented\n");
223 return E_NOTIMPL;
224}

◆ STDMETHODIMP_() [1/2]

CTuningSpaceContainer::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 19 of file tuningspace_container.cpp.

20 {
22 return m_Ref;
23 }

◆ STDMETHODIMP_() [2/2]

CTuningSpaceContainer::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 24 of file tuningspace_container.cpp.

25 {
27 if (!m_Ref)
28 {
29 OutputDebugStringW(L"CTuningSpaceContainer::Release : delete\n");
30 //delete this;
31 return 0;
32 }
33 return m_Ref;
34 }
#define InterlockedDecrement
Definition: armddk.h:52

◆ TuningSpacesForCLSID()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::TuningSpacesForCLSID ( BSTR  SpaceCLSID,
ITuningSpaces **  NewColl 
)

Implements ITuningSpaceContainer.

Definition at line 171 of file tuningspace_container.cpp.

172{
173 OutputDebugStringW(L"CTuningSpaceContainer::TuningSpacesForCLSID : NotImplemented\n");
174 return E_NOTIMPL;
175}

◆ TuningSpacesForName()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::TuningSpacesForName ( BSTR  Name,
ITuningSpaces **  NewColl 
)

Implements ITuningSpaceContainer.

Definition at line 186 of file tuningspace_container.cpp.

187{
188 OutputDebugStringW(L"CTuningSpaceContainer::TuningSpacesForName : NotImplemented\n");
189 return E_NOTIMPL;
190}

Member Data Documentation

◆ m_Ref

LONG CTuningSpaceContainer::m_Ref
protected

Definition at line 62 of file tuningspace_container.cpp.

Referenced by Add(), and STDMETHODIMP_().


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